diff --git a/.woodpecker/build-docker.yml b/.woodpecker/build-docker.yml index da53fbb..c886016 100644 --- a/.woodpecker/build-docker.yml +++ b/.woodpecker/build-docker.yml @@ -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 diff --git a/.woodpecker/build-forgejo.yml b/.woodpecker/build-forgejo.yml deleted file mode 100644 index 39801ca..0000000 --- a/.woodpecker/build-forgejo.yml +++ /dev/null @@ -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 \ No newline at end of file