mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 22:56:32 +00:00
17 lines
432 B
YAML
17 lines
432 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 Dockerfile -t localhost:5000/admin:$TAG .
|
|
- docker push localhost:5000/admin:$TAG
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|