chore: add instructions #4
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: Deploy | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
job_id: | |
runs-on: 'ubuntu-latest' | |
# Add "id-token" with the intended permissions. | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
workload_identity_provider: 'projects/195139564832/locations/global/workloadIdentityPools/github-pool/providers/github-wif' | |
service_account: 'github-action-deployer@gtp-reinaldo-study-0001.iam.gserviceaccount.com' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v2' | |
with: | |
version: '>= 363.0.0' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud info' | |
# Build and push image to Google Container Registry | |
- name: Build | |
run: gcloud builds submit --tag us-central1-docker.pkg.dev/gtp-reinaldo-study-0001/default-repo/sample:tag1 |