Skip to content

github/actions-oidc-debugger #8

github/actions-oidc-debugger

github/actions-oidc-debugger #8

Workflow file for this run

# This workflow deploys the repository to run daily on google cloud run
name: Deploy
on:
push:
# branches: develop
jobs:
main:
runs-on: ubuntu-latest
environment: deployment
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout actions-oidc-debugger
uses: actions/checkout@v3
with:
repository: github/actions-oidc-debugger
ref: main
#token: ${{ secrets.your-checkout-token }}
path: ./.github/actions/actions-oidc-debugger
- name: Debug OIDC Claims
uses: ./.github/actions/actions-oidc-debugger
with:
audience: '${{ github.server_url }}/${{ github.repository_owner }}'
- name: Google Cloud Auth
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/762526944259/locations/global/workloadIdentityPools/my-pool/providers/my-provider
service_account: '[email protected]'
- name: Set up Google Cloud
uses: google-github-actions/setup-gcloud@v2
- name: Build Docker image
run: gcloud builds submit --tag us-south1-docker.pkg.dev/api-tools-451421/runners/daily-update-events .
- name: Upload to dev job
run: gcloud run jobs deploy daily-update-events-dev --image us-south1-docker.pkg.dev/api-tools-451421/runners/daily-update-events --tasks 1 --max-retries 5 --region us-south1 --project=api-tools-451421
- name: Upload to prod job
run: gcloud run jobs deploy daily-update-events-prod --image us-south1-docker.pkg.dev/api-tools-451421/runners/daily-update-events --tasks 1 --max-retries 5 --region us-south1 --project=api-tools-451421