Skip to content

Merge pull request #17 from sigstore/dependabot/go_modules/get-oncall… #19

Merge pull request #17 from sigstore/dependabot/go_modules/get-oncall…

Merge pull request #17 from sigstore/dependabot/go_modules/get-oncall… #19

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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- 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