docker-monit/.gitlab-ci.yml

34 lines
1.0 KiB
YAML
Raw Normal View History

2024-08-20 03:11:55 +00:00
image: docker:dind
services:
- docker:dind
stages:
- build_amd64
- build_arm64
before_script:
- docker -v
build_amd64:
stage: build_amd64
needs: []
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx build -t monit:amd64 .
2024-08-20 03:16:12 +00:00
- docker tag monit:amd64 $CI_REGISTRY/manalejandro/docker-monit/monit:amd64
- docker tag monit:amd64 $CI_REGISTRY/manalejandro/docker-monit/monit:latest
- docker push $CI_REGISTRY/manalejandro/docker-monit/monit:amd64
- docker push $CI_REGISTRY/manalejandro/docker-monit/monit:latest
2024-08-20 03:11:55 +00:00
build_arm64:
stage: build_arm64
needs: []
before_script:
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx build --platform arm64 -t monit:arm64 .
2024-08-20 03:16:12 +00:00
- docker tag monit:arm64 $CI_REGISTRY/manalejandro/docker-monit/monit:arm64
- docker push $CI_REGISTRY/manalejandro/docker-monit/monit:arm64