netlify-cli/.woodpecker/build-docker.yml

39 lines
987 B
YAML
Raw Normal View History

2023-08-12 15:21:31 +02:00
when:
2023-08-14 07:46:05 +02:00
- event: manual
- event: cron
cron: build_weekly
2023-08-12 15:21:31 +02:00
steps:
set-tags:
image: debian:12
commands:
2023-08-14 07:46:05 +02:00
- export TS=`date '+%Y%m%d%H%M'`
2023-08-12 15:28:22 +02:00
- echo "$TS" >> tags.txt
2023-08-14 07:48:16 +02:00
- echo "latest" >> tags.txt
2023-08-12 15:28:22 +02:00
- cat tags.txt
2023-08-14 10:31:55 +02:00
2023-08-14 07:35:09 +02:00
deploy-dockerhub:
2023-08-12 15:21:31 +02:00
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: Dockerfile
2023-08-14 07:46:05 +02:00
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
2023-08-14 10:31:55 +02:00
repo: docker.io/lauralani/netlify-cli
registry: docker.io
2023-08-12 15:21:31 +02:00
tags_file: ./tags.txt
username: lauralani
password:
2023-08-14 10:31:55 +02:00
from_secret: docker_token
# deploy-forgejo:
# when:
# - event: tag
# image: woodpeckerci/plugin-docker-buildx
# settings:
# dockerfile: Dockerfile
# platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
# repo: code.lila.network/lauralani/netlify-cli
# registry: code.lila.network
# tags_file: ./tags.txt
# username: lauralani
# password:
# from_secret: forgejo_token