From 30cf84c5591d8adae213924ba16dd1c10836459d Mon Sep 17 00:00:00 2001 From: Igor Borodin Date: Tue, 24 Oct 2023 14:43:23 +0200 Subject: [PATCH] ci: Fix zk-env Docker images publishing, take 2 (#300) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 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`. --- .github/workflows/zk-environment.publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/zk-environment.publish.yml b/.github/workflows/zk-environment.publish.yml index 96e25adca14e..2695407854e9 100644 --- a/.github/workflows/zk-environment.publish.yml +++ b/.github/workflows/zk-environment.publish.yml @@ -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