mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 22:46:32 +00:00
094c16263f
Made-with: Cursor
16 lines
410 B
YAML
16 lines
410 B
YAML
when:
|
|
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 Dockerfile -t localhost:5000/loader:$TAG .
|
|
- docker push localhost:5000/loader:$TAG
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|