mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-23 03:26:35 +00:00
0196d61c7b
ci/woodpecker/manual/build-arm Pipeline was successful
Replaced HARBOR_USER and HARBOR_TOKEN with REGISTRY_USER and REGISTRY_TOKEN for improved clarity and consistency. Adjusted the Docker login command and updated the image tagging to reflect the new registry path. This change enhances the pipeline's flexibility for different environments.
32 lines
1005 B
YAML
32 lines
1005 B
YAML
when:
|
|
event: [push, manual]
|
|
branch: [dev, stage, main]
|
|
|
|
labels:
|
|
platform: arm64
|
|
|
|
steps:
|
|
- name: build-push
|
|
image: docker
|
|
environment:
|
|
REGISTRY_HOST:
|
|
from_secret: registry_host
|
|
REGISTRY_USER:
|
|
from_secret: registry_user
|
|
REGISTRY_TOKEN:
|
|
from_secret: registry_token
|
|
commands:
|
|
- 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 Dockerfile \
|
|
--build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA \
|
|
--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/azaion/autopilot:$TAG .
|
|
- docker push $REGISTRY_HOST/azaion/autopilot:$TAG
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|