mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
Replace github actions with circle ci.
This commit is contained in:
parent
e9c84fbb7b
commit
69fec8f7dd
3 changed files with 56 additions and 51 deletions
56
.circleci/config.yml
Normal file
56
.circleci/config.yml
Normal file
|
@ -0,0 +1,56 @@
|
|||
version: 2.1
|
||||
|
||||
jobs:
|
||||
arm64:
|
||||
machine:
|
||||
image: ubuntu-2004:current
|
||||
resource_class: arm.medium
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
export DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain
|
||||
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||
docker build -t 1337kavin/piped-proxy:latest-arm64 .
|
||||
docker push 1337kavin/piped-proxy:latest-arm64
|
||||
amd64:
|
||||
machine:
|
||||
image: ubuntu-2004:current
|
||||
resource_class: medium
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
export DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain
|
||||
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
|
||||
docker build -t 1337kavin/piped-proxy:latest-amd64 .
|
||||
docker push 1337kavin/piped-proxy: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/piped-proxy:latest 1337kavin/piped-proxy:latest-arm64 1337kavin/piped-proxy:latest-amd64
|
||||
docker manifest push 1337kavin/piped-proxy:latest
|
||||
|
||||
workflows:
|
||||
build-docker:
|
||||
jobs:
|
||||
- arm64:
|
||||
filters:
|
||||
branches:
|
||||
only: main
|
||||
- amd64:
|
||||
filters:
|
||||
branches:
|
||||
only: main
|
||||
- push:
|
||||
filters:
|
||||
branches:
|
||||
only: main
|
||||
requires:
|
||||
- arm64
|
||||
- amd64
|
Loading…
Add table
Add a link
Reference in a new issue