mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:56:29 +00:00
17 lines
451 B
YAML
17 lines
451 B
YAML
when:
|
|
event: [push, manual]
|
|
branch: [dev, stage, main]
|
|
|
|
labels:
|
|
platform: arm64
|
|
|
|
steps:
|
|
- name: build-push
|
|
image: docker
|
|
commands:
|
|
- if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi
|
|
- docker build -f src/Dockerfile -t localhost:5000/annotations:$TAG src/
|
|
- docker push localhost:5000/annotations:$TAG
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|