App group lifecycle plugin (#351) #172
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: Docker Image CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| docker-release: | |
| name: Docker release to Google Artifact Registry | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: "read" | |
| id-token: "write" | |
| steps: | |
| - id: checkout | |
| name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - id: auth | |
| name: Authenticate with Google Cloud | |
| uses: google-github-actions/auth@v3 | |
| with: | |
| token_format: access_token | |
| workload_identity_provider: projects/259610024247/locations/global/workloadIdentityPools/github-actions/providers/github-actions-access | |
| service_account: [email protected] | |
| access_token_lifetime: 300s | |
| - name: Login to Artifact Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: us-east1-docker.pkg.dev | |
| username: oauth2accesstoken | |
| password: ${{ steps.auth.outputs.access_token }} | |
| - id: docker-push-tagged | |
| name: Tag Docker image and push to Google Artifact Registry | |
| uses: docker/build-push-action@v6 | |
| with: | |
| push: true | |
| tags: | | |
| us-east1-docker.pkg.dev/discord-access-prd/access/access:latest | |
| build-args: | | |
| SENTRY_RELEASE=${{ github.sha }} | |
| PUSH_SENTRY_RELEASE=true | |
| secrets: | | |
| "SENTRY_ORG=${{ secrets.SENTRY_ORG }}" | |
| "SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}" | |
| "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" |