chore(release-please): release blueprint-test 0.16.3 (#2630) #11
This file contains 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: Build and push new dev tools image | |
on: | |
push: | |
branches: | |
- "master" | |
paths: | |
- "infra/build/**" | |
- ".github/workflows/build-push-cft-devtools.yml" | |
env: | |
PROJECT_ID: ${{ secrets.GCR_PROJECT_ID }} | |
jobs: | |
build-push-dev-tools: | |
name: Build and push new CFT dev tools image | |
runs-on: ubuntu-latest | |
if: github.repository == 'GoogleCloudPlatform/cloud-foundation-toolkit' | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- id: 'auth' | |
name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@8254fb75a33b976a221574d287e93919e6a36f70' # v2.1.6 | |
with: | |
workload_identity_provider: '${{ secrets.GCP_WIF_PROVIDER }}' | |
service_account: '${{ secrets.GCP_WIF_SA_EMAIL }}' | |
- uses: google-github-actions/setup-gcloud@f0990588f1e5b5af6827153b93673613abdc6ec7 # v2.1.1 | |
with: | |
project_id: ${{ env.PROJECT_ID }} | |
- name: Build | |
run: |- | |
gcloud auth configure-docker -q | |
cd infra/build && make build-image-developer-tools | |
- name: Push | |
run: |- | |
cd infra/build && make release-image-developer-tools | |
- name: Open issue if failed | |
if: ${{ failure() }} | |
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
with: | |
script: |- | |
github.rest.issues.create({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
title: 'build-push-dev-tools job failed', | |
body: 'Logs: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}', | |
assignees: ['bharathkkb','apeabody'] | |
}) |