Skip to content

Commit

Permalink
Merge pull request #63 from fangohr/fix-multi-architecture-docker-ima…
Browse files Browse the repository at this point in the history
…ge-generation

Fix multi architecture docker image generation
  • Loading branch information
fangohr committed Mar 15, 2024
2 parents 080b65b + 9eeddb4 commit bfd4e56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docker/push-image-to-dockerhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ echo "Build-multi-architecture container:"

# if no builder exists yet, then create one. We use the exit code of `docker buildx inspect` to decide
# (source: https://github.com/docker/buildx/discussions/1319)
docker buildx inspect || echo docker buildx create --name container --driver=docker-container
docker buildx inspect container-builder || docker buildx create --name container-builder --driver=docker-container

# multi-platform build and push to Dockerhub
time docker buildx build --tag oommf/oommf:latest tag --tag oommf/oommf:21a0 --platform linux/arm64,linux/amd64 --builder container --push .
time docker buildx build --tag oommf/oommf:latest --tag oommf/oommf:21a0 --platform linux/arm64,linux/amd64 --builder container-builder --push .

# TODO add once working

0 comments on commit bfd4e56

Please sign in to comment.