From 1dcc4e73d7b2010c55eb68f397f9c23dd7f6b51b Mon Sep 17 00:00:00 2001 From: lauralani Date: Mon, 14 Aug 2023 07:46:05 +0200 Subject: [PATCH] update CI --- .woodpecker/build-docker.yml | 28 +++++++++++++++++++++------- .woodpecker/build-forgejo.yml | 24 ------------------------ 2 files changed, 21 insertions(+), 31 deletions(-) delete mode 100644 .woodpecker/build-forgejo.yml 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