From b6f546269a6510ea54e8efdb96c6e5e7cf47dee4 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 9 Feb 2024 11:16:27 +0100 Subject: [PATCH] ci: variable for name --- .woodpecker/build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 3fa7800..1e59941 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -38,21 +38,21 @@ steps: - source .variables - | docker buildx build \ - --tag registry.mgrote.net/allzweckcontainer \ - --tag registry.mgrote.net/allzweckcontainer:${CI_COMMIT_SHA:0:8} \ - --tag registry.mgrote.net/allzweckcontainer:${CI_COMMIT_BRANCH} \ - --tag registry.mgrote.net/allzweckcontainer:latest \ - --tag registry.mgrote.net/allzweckcontainer:$VERSION \ + --tag registry.mgrote.net/$CI_REPO_NAME \ + --tag registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_SHA:0:8} \ + --tag registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_BRANCH} \ + --tag registry.mgrote.net/$CI_REPO_NAME:latest \ + --tag registry.mgrote.net/$CI_REPO_NAME:$VERSION \ --label org.opencontainers.image.url=$CI_REPO_URL \ --label org.opencontainers.image.source=$CI_REPO_URL \ --label org.opencontainers.image.revision=$CI_COMMIT_SHA \ --label org.opencontainers.image.created=$DATE \ --file Dockerfile . - - docker push registry.mgrote.net/allzweckcontainer:${CI_COMMIT_SHA:0:8} - - docker push registry.mgrote.net/allzweckcontainer:${CI_COMMIT_BRANCH} - - docker push registry.mgrote.net/allzweckcontainer:latest - - docker push registry.mgrote.net/allzweckcontainer:$VERSION - - docker push registry.mgrote.net/allzweckcontainer + - docker push registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_SHA:0:8} + - docker push registry.mgrote.net/$CI_REPO_NAME:${CI_COMMIT_BRANCH} + - docker push registry.mgrote.net/$CI_REPO_NAME:latest + - docker push registry.mgrote.net/$CI_REPO_NAME:$VERSION + - docker push registry.mgrote.net/$CI_REPO_NAME when: - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' ...