Skip to content

Commit

Permalink
Multiarch builds (#311)
Browse files Browse the repository at this point in the history
* Multiarch builds

* Finalize
  • Loading branch information
MrNaif2018 authored Sep 17, 2021
1 parent abf724e commit c804dff
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: 2
version: 2.1

orbs:
bitcartcc: bitcartcc/bitcartcc-shared@1

jobs:
test:
docker:
Expand All @@ -23,27 +27,33 @@ jobs:

- run: yarn lint

deploy:
docker:
- image: circleci/node:14
steps:
- checkout
- setup_remote_docker:
version: 19.03.13
- run: |
docker build -t $DOCKER_IMAGE:$CIRCLE_TAG .
docker tag $DOCKER_IMAGE:$CIRCLE_TAG $DOCKER_IMAGE:stable
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push $DOCKER_IMAGE:$CIRCLE_TAG
docker push $DOCKER_IMAGE:stable
workflows:
version: 2
test-and-deploy:
jobs:
- test
- deploy:
- bitcartcc/deploy-amd64:
name: deploy-amd64
context: global
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+(\.[0-9]+)*/
- bitcartcc/deploy-arm:
name: deploy-arm
context: global
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+(\.[0-9]+)*/
- bitcartcc/deploy:
name: deploy
context: global
requires:
- deploy-amd64
- deploy-arm
filters:
branches:
ignore: /.*/
Expand Down

0 comments on commit c804dff

Please sign in to comment.