mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-28 16:07:49 +01:00
ARM builds
This commit is contained in:
@@ -133,6 +133,31 @@ jobs:
|
||||
name: build and push to docker hub
|
||||
#command: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag stepanusatiuk/writer:latest .
|
||||
command: docker buildx build --push --platform linux/amd64 --tag stepanusatiuk/writer:$CIRCLE_BRANCH .
|
||||
|
||||
build-arm:
|
||||
machine:
|
||||
image: ubuntu-2004:202107-01
|
||||
resource_class: arm.medium
|
||||
working_directory: ~/writer
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: log in to docker hub
|
||||
command: echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin
|
||||
|
||||
- run:
|
||||
name: install emulators
|
||||
command: docker run --privileged --rm tonistiigi/binfmt --install all
|
||||
|
||||
- run:
|
||||
name: create docker builder
|
||||
command: docker buildx create --use
|
||||
|
||||
- run:
|
||||
name: build and push to docker hub
|
||||
#command: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag stepanusatiuk/writer:latest .
|
||||
command: docker buildx build --push --platform linux/arm64/v8 --tag stepanusatiuk/writer:$CIRCLE_BRANCH .
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
@@ -148,3 +173,8 @@ workflows:
|
||||
- test-backend
|
||||
- test-frontend
|
||||
- test-frontend-build
|
||||
- build-arm:
|
||||
requires:
|
||||
- test-backend
|
||||
- test-frontend
|
||||
- test-frontend-build
|
||||
|
||||
Reference in New Issue
Block a user