Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build multiplatform docker images #119

Merged
merged 5 commits into from
Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ executors:
working_directory: ~/src
docker_builder:
docker:
- image: circleci/buildpack-deps:bionic
- image: cimg/base:2023.03-22.04

jobs:
verify_rebar_lock:
Expand Down Expand Up @@ -59,9 +59,9 @@ jobs:
name: Build and push Docker image to DockerHub
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker build -t ${DOCKERHUB_REPO:?}:${CIRCLE_TAG:?} -t ${DOCKERHUB_REPO:?}:latest .
docker push ${DOCKERHUB_REPO:?}:${CIRCLE_TAG:?}
docker push ${DOCKERHUB_REPO:?}:latest
docker context create aeternity
docker buildx create aeternity --use
docker buildx build --platform=linux/amd64,linux/arm64 --push -t ${DOCKERHUB_REPO:?}:${CIRCLE_TAG:?} -t ${DOCKERHUB_REPO:?}:latest .

workflows:
version: 2
Expand Down