ref: Fix panic in get_pending_activations (#517) #1101
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - release/** | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| platform: amd64 | |
| - os: ubuntu-24.04-arm | |
| platform: arm64 | |
| name: build-${{ matrix.platform }} | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Build and push taskbroker image | |
| uses: getsentry/action-build-and-push-images@a53f146fc1ea3cb404f2dcf7378f5b60dd98d3ca | |
| with: | |
| image_name: 'taskbroker' | |
| platforms: linux/${{ matrix.platform }} | |
| dockerfile_path: './Dockerfile' | |
| build_args: TASKBROKER_GIT_REVISION=${{ github.sha }} | |
| ghcr: true | |
| tag_suffix: -${{ matrix.platform }} | |
| publish_on_pr: true | |
| google_ar: false | |
| tag_nightly: false | |
| tag_latest: false | |
| assemble-taskbroker-image: | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| if: ${{ (github.ref_name == 'main' || startsWith(github.ref_name, 'releases/')) && github.event_name != 'pull_request' }} | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - run: docker login --username '${{ github.actor }}' --password-stdin ghcr.io <<< "$GHCR_TOKEN" | |
| env: | |
| GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0 | |
| - name: Create multiplatform manifests | |
| run: | | |
| docker buildx imagetools create \ | |
| --tag ghcr.io/getsentry/taskbroker:${{ github.event.pull_request.head.sha || github.sha }} \ | |
| --tag ghcr.io/getsentry/taskbroker:nightly \ | |
| ghcr.io/getsentry/taskbroker:${{ github.event.pull_request.head.sha || github.sha }}-amd64 \ | |
| ghcr.io/getsentry/taskbroker:${{ github.event.pull_request.head.sha || github.sha }}-arm64 | |
| build-production: | |
| runs-on: ubuntu-24.04 | |
| if: github.ref_name == github.event.repository.default_branch | |
| name: Build and push production images to ${{ matrix.registry }} registry | |
| strategy: | |
| matrix: | |
| include: | |
| - registry: single-region | |
| image: us-central1-docker.pkg.dev/sentryio/taskbroker/image | |
| - registry: multi-region | |
| image: us-docker.pkg.dev/sentryio/taskbroker-mr/image | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Build and push taskbroker image | |
| uses: getsentry/action-build-and-push-images@a53f146fc1ea3cb404f2dcf7378f5b60dd98d3ca | |
| with: | |
| image_name: 'taskbroker' | |
| platforms: linux/amd64 | |
| dockerfile_path: './Dockerfile' | |
| build_args: TASKBROKER_GIT_REVISION=${{ github.sha }} | |
| ghcr: false | |
| google_ar: true | |
| tag_nightly: false | |
| tag_latest: true | |
| google_ar_image_name: ${{ matrix.image }} | |
| google_workload_identity_provider: projects/868781662168/locations/global/workloadIdentityPools/prod-github/providers/github-oidc-pool | |
| google_service_account: [email protected] | |
| self-hosted-end-to-end: | |
| needs: [assemble-taskbroker-image] | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Run Sentry self-hosted e2e CI | |
| uses: getsentry/self-hosted@master | |
| with: | |
| project_name: taskbroker | |
| image_url: ghcr.io/getsentry/taskbroker:${{ github.sha }} | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |