From 59a4d663c16844602b4566d83fd7e0aeaab96d09 Mon Sep 17 00:00:00 2001 From: Ada Date: Sun, 7 Apr 2024 22:00:28 +0200 Subject: [PATCH] Add ci --- .woodpecker.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..a8cae3f --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,33 @@ +steps: + - name: publish_image + image: woodpeckerci/plugin-docker-buildx + settings: + repo: git.gnous.eu/${CI_REPO_OWNER}/forgejo + dockerfile: Dockerfile + platforms: linux/amd64 + registry: https://git.gnous.eu + tag: ${CI_COMMIT} + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + branch: ${CI_REPO_DEFAULT_BRANCH} + event: push + - name: publish_image_tag + image: woodpeckerci/plugin-docker-buildx + settings: + repo: git.gnous.eu/${CI_REPO_OWNER}/forgejo + dockerfile: Dockerfile + platforms: linux/amd64 + registry: https://git.gnous.eu + tags: + - ${CI_COMMIT_TAG##v} # Remove v from tag + - stable + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: tag +