From fc10d5f12085e24ea3c32bab4cc3bd016b914e1d Mon Sep 17 00:00:00 2001 From: Oleksandr Bezdieniezhnykh Date: Tue, 21 Apr 2026 20:37:38 +0300 Subject: [PATCH] Update Woodpecker CI configuration for Docker registry authentication Replaced HARBOR_USER and HARBOR_TOKEN with REGISTRY_USER and REGISTRY_TOKEN for improved clarity and consistency. Adjusted Docker login command and updated image tagging to reflect the new registry path under 'azaion'. This change enhances the pipeline's ability to authenticate and push images to the correct registry. --- .woodpecker/build-arm.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.woodpecker/build-arm.yml b/.woodpecker/build-arm.yml index 104f90b..0157ca4 100644 --- a/.woodpecker/build-arm.yml +++ b/.woodpecker/build-arm.yml @@ -11,13 +11,13 @@ steps: environment: REGISTRY_HOST: from_secret: registry_host - HARBOR_USER: - from_secret: harbor_user - HARBOR_TOKEN: - from_secret: harbor_token + REGISTRY_USER: + from_secret: registry_user + REGISTRY_TOKEN: + from_secret: registry_token commands: - - echo "$HARBOR_TOKEN" | docker login "$REGISTRY_HOST" -u "$HARBOR_USER" --password-stdin - - if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi + - echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin + - export TAG=${CI_COMMIT_BRANCH}-arm - export BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) - | docker build -f SatelliteProvider.Api/Dockerfile \ @@ -25,7 +25,7 @@ steps: --label org.opencontainers.image.revision=$CI_COMMIT_SHA \ --label org.opencontainers.image.created=$BUILD_DATE \ --label org.opencontainers.image.source=$CI_REPO_URL \ - -t $REGISTRY_HOST/satellite-provider:$TAG . - - docker push $REGISTRY_HOST/satellite-provider:$TAG + -t $REGISTRY_HOST/azaion/satellite-provider:$TAG . + - docker push $REGISTRY_HOST/azaion/satellite-provider:$TAG volumes: - /var/run/docker.sock:/var/run/docker.sock