Skip to content

Commit

Permalink
devops: pull multi-arch images before creating manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Apr 24, 2023
1 parent 90cbc19 commit 30b96e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/joystream-node-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ env:
REPOSITORY: joystream/node

jobs:
repo-check:
name: Check if main image already published
main:
name: Publish joystream/node:latest docker image
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
Expand All @@ -31,10 +31,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Publish joystream/node:latest manifest
- name: Publish manifest
run: |
IMAGE=${{ env.REPOSITORY }}:${{ env.TAG_SHASUM }}
LATEST_TAG=${{ env.REPOSITORY }}:latest
docker pull $IMAGE-amd64
docker pull $IMAGE-arm64
docker manifest create $LATEST_TAG $IMAGE-amd64 $IMAGE-arm64
docker manifest annotate $LATEST_TAG $IMAGE-amd64 --arch amd64
docker manifest annotate $LATEST_TAG $IMAGE-arm64 --arch arm64
Expand Down

0 comments on commit 30b96e5

Please sign in to comment.