mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-04-23 05:46:39 +00:00
1baa649540
Pipeline reads $REGISTRY_HOST from the Woodpecker global secret 'registry_host' instead of hardcoding 'localhost:5000'. The full host:port lives in the secret, so Harbor migration (AZ-205) becomes one secret edit rather than editing every submodule pipeline. Made-with: Cursor
20 lines
553 B
YAML
20 lines
553 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
|
|
commands:
|
|
- if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi
|
|
- docker build -f SatelliteProvider.Api/Dockerfile -t $REGISTRY_HOST/satellite-provider:$TAG .
|
|
- docker push $REGISTRY_HOST/satellite-provider:$TAG
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|