chore(deps): bump cloud-sql-connectors/cloud-sql-proxy from 2.15.2 to 2.15.3 in /deployment/backstage in the kubernetes group #45
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: "Kubernetes Deployment" | |
'on': | |
pull_request_target: | |
types: | |
- closed | |
# The below environment variables are used to set up the Cloud Build trigger | |
# and can be changed from the defaults if the common build environment doesn't meet the needs of the service | |
env: | |
_APP: backstage | |
_SERVICE_ACCOUNT: "container-image-cloudbuild@bits-packaging-prod.iam.gserviceaccount.com" | |
_BUILDER_PROJECT: bits-packaging-prod | |
_REGISTRY_PROJECT: bits-packaging-prod | |
_REGISTRY_NAME: bits-container-hub | |
jobs: | |
deploy: | |
if: ${{ github.event.pull_request.merged == true }} | |
name: "Deploy to Production" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- name: Set _REPONAME environment variable | |
run: echo "_REPONAME=${GITHUB_REPOSITORY#"broadinstitute/"}" >> $GITHUB_ENV | |
- uses: "actions/checkout@v4" | |
- uses: "google-github-actions/auth@v2" | |
with: | |
workload_identity_provider: "projects/1087551700560/locations/global/workloadIdentityPools/github-pool/providers/github-provider" | |
service_account: "container-image-cloudbuild@bits-packaging-prod.iam.gserviceaccount.com" | |
- name: "Set up Cloud SDK" | |
uses: "google-github-actions/setup-gcloud@v2" | |
with: | |
version: ">= 506.0.0" | |
- name: "Run Cloud Build" | |
run: |- | |
gcloud builds submit \ | |
projects/${_BUILDER_PROJECT}/locations/us-east4/connections/github/repositories/${_REPONAME} \ | |
--revision=$GITHUB_SHA \ | |
--git-source-revision=$GITHUB_SHA \ | |
--service-account='projects/${_BUILDER_PROJECT}/serviceAccounts/${_SERVICE_ACCOUNT}' \ | |
--config=.cloudbuild/gke-deploy.yaml \ | |
--region=us-east4 \ | |
--substitutions=_APP=${_APP},_REGISTRY_PROJECT=${_REGISTRY_PROJECT},_REGISTRY_NAME=${_REGISTRY_NAME},_BUILDER_PROJECT=${_BUILDER_PROJECT},_SERVICE_ACCOUNT=${_SERVICE_ACCOUNT},_IMAGE_TAG=${{ github.event.number }},_ENV="prod" \ | |
--project=${_BUILDER_PROJECT} |