Skip to content

Commit

Permalink
docker: build for arm cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Dec 28, 2021
1 parent 91c5265 commit 5c8bd51
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,26 @@ jobs:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
IMAGE_NAME: ipfs/go-ipfs
IMAGE_NAME: odanado/go-ipfs-test
WIP_IMAGE_TAG: wip
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build wip Docker image
run: docker build -t $IMAGE_NAME:$WIP_IMAGE_TAG .
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
context: .
file: ./Dockerfile
tags: |
"$IMAGE_NAME:$WIP_IMAGE_TAG"
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand Down

0 comments on commit 5c8bd51

Please sign in to comment.