mirror of
https://github.com/TeamPiped/region-restriction-checker.git
synced 2025-01-06 01:30:28 +05:30
Add circle ci config.
This commit is contained in:
parent
09a141db11
commit
6c618e4186
54
.circleci/config.yml
Normal file
54
.circleci/config.yml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
version: 2.1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
arm64:
|
||||||
|
machine:
|
||||||
|
image: ubuntu-2004:current
|
||||||
|
resource_class: arm.medium
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
command: |
|
||||||
|
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: |
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user