From 88c488106f91d02db2b6ebf7ae972b403bb6903b Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 2 Feb 2024 22:02:00 +0100 Subject: [PATCH] ci: replace docker-plugin, set SemVer, remove tag --- .woodpecker/build.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 8a4f7ba..dc7e1ed 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -1,31 +1,19 @@ --- depends_on: - lint -steps: - selfhosted_tag: - image: plugins/docker@sha256:2f157400c2cb7de1b309b0f044f119375108218e54d38e1340e00b9f93abdefb - settings: - dockerfile: Dockerfile - repo: registry.mgrote.net/python-api-server - registry: registry.mgrote.net - tags: - - ${CI_COMMIT_TAG} - when: - event: - - tag +variables: # https://woodpecker-ci.org/docs/usage/advanced-usage + - &VERSION 'v1.0.${CI_PIPELINE_NUMBER}' # wird für die Docker-Tags verwendet + +steps: selfhosted_push: - image: plugins/docker@sha256:2f157400c2cb7de1b309b0f044f119375108218e54d38e1340e00b9f93abdefb + image: "woodpeckerci/plugin-docker-buildx:3.0.1" settings: dockerfile: Dockerfile repo: registry.mgrote.net/python-api-server registry: registry.mgrote.net tags: + - *VERSION - ${CI_COMMIT_SHA:0:8} - ${CI_COMMIT_BRANCH} - latest - when: - event: - exclude: - - pull_request - - tag