Skip to content

Commit

Permalink
ci(gocd): Upload missing gocd artifacts (#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde authored Jan 28, 2025
1 parent 99aeb39 commit 1fef5b6
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,63 @@ 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: |
docker push "$BUILDER_IMG_CACHE"
docker push "$NIGHTLY_IMG_CACHE"
docker push "$IMG_VERSIONED"
gocd-artifacts:
needs: [build-setup, build-image]
if: "needs.build-setup.outputs.full_ci == 'true'"

name: Upload gocd artifacts
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

env:
GHCR_IMAGE: ghcr.io/getsentry/symbolicator:amd64-${{ github.sha }}

steps:
- name: Google Auth
id: auth
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/868781662168/locations/global/workloadIdentityPools/prod-github/providers/github-oidc-pool
service_account: [email protected]

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
with:
version: ">= 390.0.0"

- uses: actions/download-artifact@v4
with:
pattern: "image-amd64"
merge-multiple: true

- name: Upload gocd deployment assets
run: gsutil -m cp ./symbolicator*.zip "gs://dicd-team-devinfra-cd--symbolicator/difs/${{ github.sha }}/"

assemble:
needs: [build-setup, build-image]
if: "needs.build-setup.outputs.full_ci == 'true'"
Expand Down

0 comments on commit 1fef5b6

Please sign in to comment.