From 14c04d7ba590e79a4d4fedfb9d8657815cccc0c0 Mon Sep 17 00:00:00 2001 From: David Herberth Date: Mon, 27 Jan 2025 09:55:16 +0100 Subject: [PATCH] use artifacts --- .github/workflows/image.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 38d975450..6c6b3d375 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -97,6 +97,21 @@ jobs: --cache-from "${NIGHTLY_IMG_CACHE}" \ . + - name: Prepare Artifacts + if: "needs.build-setup.outputs.full_ci == 'true'" + run: | + mkdir -p "artifacts/${{ matrix.arch }}" + + docker run --rm --entrypoint cat "${BUILDER_IMG_CACHE}" /opt/symbolicator-debug.zip > artifacts/symbolicator-debug.zip + docker run --rm --entrypoint cat "${BUILDER_IMG_CACHE}" /opt/symbolicator.src.zip > artifacts/symbolicator.src.zip + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + retention-days: 1 + name: image-${{ matrix.arch }} + path: "./artifacts/*" + - name: push all images if: "needs.build-setup.outputs.full_ci == 'true'" run: | @@ -131,15 +146,12 @@ jobs: with: version: ">= 390.0.0" - - name: Upload gocd deployment assets - run: | - set -euxo pipefail - - docker run --rm --entrypoint cat "${GHCR_IMAGE}" /opt/symbolicator-debug.zip > symbolicator-debug.zip - docker run --rm --entrypoint cat "${GHCR_IMAGE}" /opt/symbolicator.src.zip > symbolicator.src.zip + - uses: actions/download-artifact@v4 + with: + pattern: "image-amd64" - gsutil -m cp ./symbolicator-debug.zip ./symbolicator.src.zip \ - gs://dicd-team-devinfra-cd--symbolicator/difs/${{ github.sha }}/ + - name: Upload gocd deployment assets + run: gsutil -m cp ./amd64/* "gs://dicd-team-devinfra-cd--symbolicator/difs/${{ github.sha }}/" assemble: needs: [build-setup, build-image]