Skip to content

Commit

Permalink
ci: Fix zk-env Docker images publishing, take 2 (#300)
Browse files Browse the repository at this point in the history
# What ❔

Pre-pulling Docker manifests before trying to glue multi-arch image from
them

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
hatemosphere authored Oct 24, 2023
1 parent a80714e commit 30cf84c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/zk-environment.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,16 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create and push multi-arch zk-environment lightweight manifest
run: |
docker pull matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-lightweight-amd64 --platform linux/amd64
docker pull matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-lightweight-arm64 --platform linux/arm64
docker manifest create matterlabs/zk-environment:latest2.0-lightweight \
--amend matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-lightweight-amd64 \
--amend matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-lightweight-arm64
docker manifest push matterlabs/zk-environment:latest2.0-lightweight
- name: Create and push multi-arch zk-environment Rust nightly manifest
run: |
docker pull matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-nightly-amd64 --platform linux/amd64
docker pull matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-nightly-arm64 --platform linux/arm64
docker manifest create matterlabs/zksync_rust:nightly \
--amend matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-nightly-amd64 \
--amend matterlabs/zk-environment:${{ needs.get_short_sha.outputs.short_sha }}-nightly-arm64
Expand Down

0 comments on commit 30cf84c

Please sign in to comment.