File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2626 terraform_version :
2727 type : string
2828 default : 1.3.6
29- description : ' Required erraform version '
29+ description : ' Required erraform version'
3030 secrets :
3131 AZURE_CREDENTIALS :
3232 required : false
4343 build_role :
4444 required : false
4545 description : ' AWS OIDC role for aws authentication'
46+ GCP_CREDENTIALS :
47+ description : ' The Google Cloud JSON service account key to use for authentication'
48+ required : false
4649 GITHUB :
4750 required : true
4851 description : ' PAT of the user to run the jobs.'
8891 role-duration-seconds : 900
8992 role-skip-session-tagging : true
9093
94+ # Authenticate to GCP
95+ - name : ' Authenticate to Google Cloud'
96+ if : ${{ inputs.provider == 'gcp' }}
97+ uses : ' google-github-actions/auth@v2'
98+ with :
99+ credentials_json : ' ${{ secrets.GCP_CREDENTIALS }}'
100+
91101 # Install azure-cli
92102 - name : Install Azure CLI
93103 if : ${{ inputs.provider == 'azurerm' }}
You can’t perform that action at this time.
0 commit comments