region-restriction-checker/.circleci/config.yml

57 lines
1.6 KiB
YAML
Raw Normal View History

2022-11-23 06:38:42 +00:00
version: 2.1
jobs:
arm64:
machine:
image: ubuntu-2004:current
resource_class: arm.medium
steps:
- checkout
- run:
command: |
2022-11-23 08:33:42 +00:00
export DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain
2022-11-23 06:38:42 +00:00
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker build -t 1337kavin/restriction-checker:latest-arm64 .
docker push 1337kavin/restriction-checker:latest-arm64
amd64:
machine:
image: ubuntu-2004:current
resource_class: medium
steps:
- checkout
- run:
command: |
2022-11-23 08:33:42 +00:00
export DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain
2022-11-23 06:38:42 +00:00
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker build -t 1337kavin/restriction-checker:latest-amd64 .
docker push 1337kavin/restriction-checker:latest-amd64
push:
machine:
image: ubuntu-2004:current
resource_class: medium
steps:
- run:
command: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker manifest create 1337kavin/restriction-checker:latest 1337kavin/restriction-checker:latest-arm64 1337kavin/restriction-checker:latest-amd64
docker manifest push 1337kavin/restriction-checker:latest
workflows:
build-docker:
jobs:
- arm64:
filters:
branches:
only: main
- amd64:
filters:
branches:
only: main
- push:
filters:
branches:
only: main
requires:
- arm64
- amd64