Skip to content

Commit

Permalink
use artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Jan 27, 2025
1 parent b977dfd commit 14c04d7
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 14c04d7

Please sign in to comment.