Files
satellite-provider/.woodpecker/02-build-push.yml
T
Oleksandr Bezdieniezhnykh 80ef5608f1 chore: WIP pre-implement cycle 14 baseline
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 16:13:37 +03:00

45 lines
1.4 KiB
YAML

when:
event: [push, manual]
branch: [dev, stage, main]
depends_on:
- 01-test
# Multi-arch matrix — matches suite/_infra/ci/README.md § Build-push step.
# arm64 agent (colocated Jetson) → {branch}-arm
# amd64 agent (remote host) → {branch}-amd64 (production deploy tag)
matrix:
include:
- PLATFORM: arm64
TAG_SUFFIX: arm
- PLATFORM: amd64
TAG_SUFFIX: amd64
labels:
platform: ${PLATFORM}
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}-${TAG_SUFFIX}
- export BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
- |
docker build -f SatelliteProvider.Api/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/satellite-provider:$TAG .
- docker push $REGISTRY_HOST/azaion/satellite-provider:$TAG
volumes:
- /var/run/docker.sock:/var/run/docker.sock