This commit is contained in:
parent
1a3a17a740
commit
1dcc4e73d7
2 changed files with 21 additions and 31 deletions
|
@ -1,21 +1,35 @@
|
||||||
when:
|
when:
|
||||||
- event:
|
- event: manual
|
||||||
- tag
|
- event: cron
|
||||||
|
cron: build_weekly
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
set-tags:
|
set-tags:
|
||||||
image: debian:12
|
image: debian:12
|
||||||
commands:
|
commands:
|
||||||
- export TS=`date '+%Y%m%d%H%M%S'`
|
- export TS=`date '+%Y%m%d%H%M'`
|
||||||
- echo "latest" > tags.txt
|
|
||||||
- echo "$TS" >> tags.txt
|
- echo "$TS" >> tags.txt
|
||||||
|
- echo "latest" > tags.txt
|
||||||
- cat tags.txt
|
- cat tags.txt
|
||||||
deploy-dockerhub:
|
deploy-forgejo:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
platforms: linux/amd64 #, linux/arm/v7,linux/arm64/v8
|
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
|
||||||
# repo: hub.docker.com/lauralani/netlify-cli
|
repo: code.lila.network/lauralani/netlify-cli
|
||||||
|
registry: code.lila.network
|
||||||
|
tags_file: ./tags.txt
|
||||||
|
username: lauralani
|
||||||
|
password:
|
||||||
|
from_secret: forgejo_token
|
||||||
|
deploy-dockerhub:
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
|
||||||
|
repo: hub.docker.com/lauralani/netlify-cli
|
||||||
registry: https://index.docker.io/v1/
|
registry: https://index.docker.io/v1/
|
||||||
tags_file: ./tags.txt
|
tags_file: ./tags.txt
|
||||||
username: lauralani
|
username: lauralani
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
when:
|
|
||||||
- event: manual
|
|
||||||
- event: cron
|
|
||||||
cron: build_weekly
|
|
||||||
|
|
||||||
steps:
|
|
||||||
set-tags:
|
|
||||||
image: debian:12
|
|
||||||
commands:
|
|
||||||
- export TS=`date '+%Y%m%d%H%M%S'`
|
|
||||||
- echo "latest" > tags.txt
|
|
||||||
- echo "$TS" >> tags.txt
|
|
||||||
- cat tags.txt
|
|
||||||
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
|
|
Loading…
Reference in a new issue