Skip to content

Commit

Permalink
Fix building official docker image (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechos committed Aug 7, 2023
1 parent 977b8fa commit 3af1211
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/docker-image-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:

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

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v4
with:
Expand All @@ -59,14 +59,14 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push ARM
uses: docker/build-push-action@v4
with:
context: .
platforms: 'linux/arm64'
push: true
tags: nethermindeth/juno:${{ github.event.inputs.tag }}-arm
tags: nethermindeth/juno:${{ github.event.inputs.tag }}-arm64

- name: Cleanup self-hosted
run: |
Expand All @@ -86,15 +86,12 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Create and push manifest
- name: Create and push manifest using buildx
run: |
export DOCKER_CLI_EXPERIMENTAL=enabled
docker manifest create nethermind/juno:${{ github.event.inputs.tag }} \
nethermindeth/juno:${{ github.event.inputs.tag }} \
nethermindeth/juno:${{ github.event.inputs.tag }}-arm
docker manifest annotate nethermind/juno:${{ github.event.inputs.tag }} nethermindeth/juno:${{ github.event.inputs.tag }}-arm --os linux --arch arm64
docker manifest push nethermind/juno:${{ github.event.inputs.tag }}
docker buildx imagetools create nethermindeth/juno:${{ github.event.inputs.tag }} \
nethermindeth/juno:${{ github.event.inputs.tag }}-arm64 \
--tag nethermind/juno:${{ github.event.inputs.tag }}
- name: Clean up environment
if: always()
run: |
Expand Down

0 comments on commit 3af1211

Please sign in to comment.