-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 967 Bytes
/
tt.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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-wif-pool/providers/githubwif'
service_account: 'wif-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