Skip to content

Commit

Permalink
build amd64 and arm64 docker images concurrently
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Apr 28, 2024
1 parent 45cb7f3 commit 372761f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
docker push cs50/cli:amd64
build-arm64:
needs: build-amd64
runs-on: ubuntu-latest-64-cores-arm
steps:
- name: Install Docker
Expand Down Expand Up @@ -87,6 +86,10 @@ jobs:
run: |
docker push cs50/cli:arm64
finalize:
needs: [build-amd64, build-arm64]
runs-on: ubuntu-latest
steps:
- name: Create multi-arch manifest and push to Docker Hub
if: ${{ github.ref == 'refs/heads/main' }}
run: |
Expand All @@ -111,4 +114,4 @@ jobs:
workflow_id: 'main.yml',
ref: 'main'
});
}
}

0 comments on commit 372761f

Please sign in to comment.