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

37 lines
988 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:46:05 +02:00
- echo "latest" > tags.txt
2023-08-12 15:28:22 +02:00
- cat tags.txt
2023-08-14 07:46:05 +02:00
deploy-forgejo:
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
2023-08-14 07:35:09 +02:00
deploy-dockerhub:
2023-08-14 07:46:05 +02:00
when:
- event: tag
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
repo: hub.docker.com/lauralani/netlify-cli
2023-08-12 15:21:31 +02:00
registry: https://index.docker.io/v1/
tags_file: ./tags.txt
username: lauralani
password:
from_secret: docker_token