Update Woodpecker CI configuration for Docker login and image tagging
ci/woodpecker/manual/build-arm Pipeline was successful

Replaced HARBOR_USER and HARBOR_TOKEN with REGISTRY_USER and REGISTRY_TOKEN for improved clarity. Adjusted Docker login command and updated image tagging to include the 'azaion' namespace in the registry path.
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-21 20:32:33 +03:00
parent 3c0dff07a8
commit 6de692991a
+8 -8
View File
@@ -11,13 +11,13 @@ steps:
environment: environment:
REGISTRY_HOST: REGISTRY_HOST:
from_secret: registry_host from_secret: registry_host
HARBOR_USER: REGISTRY_USER:
from_secret: harbor_user from_secret: registry_user
HARBOR_TOKEN: REGISTRY_TOKEN:
from_secret: harbor_token from_secret: registry_token
commands: commands:
- echo "$HARBOR_TOKEN" | docker login "$REGISTRY_HOST" -u "$HARBOR_USER" --password-stdin - echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
- if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi - export TAG=${CI_COMMIT_BRANCH}-arm
- export BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) - export BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
- | - |
docker build -f src/Dockerfile \ docker build -f src/Dockerfile \
@@ -25,7 +25,7 @@ steps:
--label org.opencontainers.image.revision=$CI_COMMIT_SHA \ --label org.opencontainers.image.revision=$CI_COMMIT_SHA \
--label org.opencontainers.image.created=$BUILD_DATE \ --label org.opencontainers.image.created=$BUILD_DATE \
--label org.opencontainers.image.source=$CI_REPO_URL \ --label org.opencontainers.image.source=$CI_REPO_URL \
-t $REGISTRY_HOST/annotations:$TAG src/ -t $REGISTRY_HOST/azaion/annotations:$TAG src/
- docker push $REGISTRY_HOST/annotations:$TAG - docker push $REGISTRY_HOST/azaion/annotations:$TAG
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock