Skip to content

Merge pull request #20 from sigstore/dependabot/github_actions/action… #22

Merge pull request #20 from sigstore/dependabot/github_actions/action…

Merge pull request #20 from sigstore/dependabot/github_actions/action… #22

name: deploy-get-oncall
on:
push:
branches:
- main
paths:
- "get-oncall/**"
- ".github/workflows/deploy-function-getoncall.yaml"
workflow_dispatch:
jobs:
deploy-staging:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- id: auth
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
with:
workload_identity_provider: "projects/801815070094/locations/global/workloadIdentityPools/tooling-pool/providers/github-actions-provider"
service_account: "[email protected]"
- id: deploy
uses: google-github-actions/deploy-cloud-functions@4f9427c63ffe3ceeae0032efc3ebeb686417c1cf # v1.0.1
with:
name: 'GetOncall'
runtime: 'go116'
entry_point: 'GetOncall'
project_id: ${{ env.GCP_PROJECT }}
source_dir: ./get-oncall
secret_environment_variables: 'SLACK_SECRET=projects/${{ env.GCP_PROJECT }}/secrets/SLACK_CLIENT_SECRET/versions/,SLACK_API_KEY=projects/${{ env.GCP_PROJECT }}/secrets/SLACK_API_KEY/versions/,PD_API_KEY=projects/${{ env.GCP_PROJECT }}/secrets/PD_API_KEY/versions/'
memory_mb: '512'
region: us-central1
min_instances: 0
max_instances: 1
timeout: 60
deploy_timeout: 900