This commit is contained in:
parent
1a3a17a740
commit
1dcc4e73d7
2 changed files with 21 additions and 31 deletions
|
@ -1,21 +1,35 @@
|
|||
when:
|
||||
- event:
|
||||
- tag
|
||||
- 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
|
||||
- export TS=`date '+%Y%m%d%H%M'`
|
||||
- echo "$TS" >> tags.txt
|
||||
- echo "latest" > tags.txt
|
||||
- cat tags.txt
|
||||
deploy-dockerhub:
|
||||
deploy-forgejo:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
platforms: linux/amd64 #, linux/arm/v7,linux/arm64/v8
|
||||
# repo: hub.docker.com/lauralani/netlify-cli
|
||||
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
|
||||
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/
|
||||
tags_file: ./tags.txt
|
||||
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