Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(gocd): Upload missing gocd artifacts #1603

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,43 @@ jobs:
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"

- 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

gsutil -m cp ./symbolicator-debug.zip ./symbolicator.src.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
Loading