Repository navigation
test(key-worker): Prove the watchdog without a race with the vm timeout #150
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
| name: Image | |
| # Build the service image on each pull request. On main and release | |
| # branches, also push it to ghcr.io/getsentry/roach as `:<sha>`. On main, | |
| # the Deploy workflow then moves `:main`, which deploy/gcp pulls, to | |
| # `:<sha>` when CI passed. A release copies `:<sha>` to `:<version>` | |
| # (`.craft.yml`). | |
| on: | |
| push: | |
| branches: [main, "release/**"] | |
| pull_request: | |
| # GitHub sometimes starts no run for a push. Run it again by hand: | |
| # `gh workflow run image.yml --ref main`. | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| image: | |
| name: image | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 | |
| - if: github.event_name != 'pull_request' | |
| uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 | |
| with: | |
| context: . | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: ghcr.io/getsentry/roach:${{ github.sha }} | |
| terraform: | |
| name: terraform | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| defaults: | |
| run: | |
| working-directory: deploy/gcp | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1 | |
| - run: terraform fmt -check | |
| - run: terraform init -backend=false | |
| - run: terraform validate |