File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ' Reusable gcp cloud run job deploy workflow'
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ job-name :
7+ required : true
8+ type : string
9+ registry :
10+ required : true
11+ type : string
12+ artifact-path :
13+ required : true
14+ type : string
15+ artifact-tag :
16+ required : true
17+ type : string
18+ region :
19+ required : true
20+ type : string
21+ workload-identity-provider :
22+ required : true
23+ type : string
24+ workload-identity-service-account-mail :
25+ required : true
26+ type : string
27+ jobs :
28+ deploy_cloudrun :
29+ name : Deployment job
30+ permissions :
31+ contents : ' read'
32+ id-token : ' write'
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v4
36+ - uses : ' google-github-actions/auth@v3'
37+ with :
38+ service_account : ${{ inputs.workload-identity-service-account-mail }}
39+ workload_identity_provider : ${{ inputs.workload-identity-provider }}
40+ - name : ' Set up gcloud-cli'
41+ uses : ' google-github-actions/setup-gcloud@v3'
42+ with :
43+ version : ' >= 363.0.0'
44+ - name : ' deploy cloudrun'
45+ uses : ' google-github-actions/deploy-cloudrun@v3'
46+ with :
47+ image : ${{ inputs.registry }}${{ inputs.artifact-path }}:${{ inputs.artifact-tag }}
48+ region : ${{ inputs.region }}
49+ job : ${{ inputs.job-name }}
Original file line number Diff line number Diff line change 1+ name : ' Reusable gcp cloud run service deploy workflow'
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ service-name :
7+ required : true
8+ type : string
9+ registry :
10+ required : true
11+ type : string
12+ artifact-path :
13+ required : true
14+ type : string
15+ artifact-tag :
16+ required : true
17+ type : string
18+ region :
19+ required : true
20+ type : string
21+ workload-identity-provider :
22+ required : true
23+ type : string
24+ workload-identity-service-account-mail :
25+ required : true
26+ type : string
27+ jobs :
28+ deploy_cloudrun :
29+ name : Deployment job
30+ permissions :
31+ contents : ' read'
32+ id-token : ' write'
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v4
36+ - uses : ' google-github-actions/auth@v3'
37+ with :
38+ service_account : ${{ inputs.workload-identity-service-account-mail }}
39+ workload_identity_provider : ${{ inputs.workload-identity-provider }}
40+ - name : ' Set up gcloud-cli'
41+ uses : ' google-github-actions/setup-gcloud@v3'
42+ with :
43+ version : ' >= 363.0.0'
44+ - name : ' deploy cloudrun'
45+ uses : ' google-github-actions/deploy-cloudrun@v3'
46+ with :
47+ image : ${{ inputs.registry }}${{ inputs.artifact-path }}:${{ inputs.artifact-tag }}
48+ region : ${{ inputs.region }}
49+ service : ${{ inputs.service-name }}
You can’t perform that action at this time.
0 commit comments