@@ -123,6 +123,9 @@ runs:
123
123
echo "sort-by=$(atmos describe config -f json | jq -r '.integrations.github.gitops.matrix["sort-by"]')" >> $GITHUB_OUTPUT
124
124
echo "aws-region=$(atmos describe config -f json | jq -r '.integrations.github.gitops["artifact-storage"].region')" >> $GITHUB_OUTPUT
125
125
echo "terraform-plan-role=$(atmos describe config -f json | jq -r '.integrations.github.gitops.role.plan')" >> $GITHUB_OUTPUT
126
+ echo "google-workload-identity-provider=$(atmos describe config -f json | jq -r '.integrations.github.gitops["artifact-storage"]."google-workload-identity-provider"')" >> $GITHUB_OUTPUT
127
+ echo "google-service-account=$(atmos describe config -f json | jq -r '.integrations.github.gitops["artifact-storage"]."google-service-account"')" >> $GITHUB_OUTPUT
128
+ echo "backend=$(atmos describe config -f json | jq -r '.integrations.github.gitops["artifact-storage"].backend')" >> $GITHUB_OUTPUT
126
129
127
130
- name : Install Terraform
128
131
if : ${{ steps.config.outputs.terraform-version != '' && steps.config.outputs.terraform-version != 'null' }}
@@ -157,6 +160,7 @@ runs:
157
160
- name : Configure Plan AWS Credentials
158
161
if : ${{ steps.config.outputs.aws-region != '' &&
159
162
steps.config.outputs.aws-region != 'null' &&
163
+ steps.config.outputs.backend == 'aws' &&
160
164
steps.config.outputs.terraform-plan-role != '' &&
161
165
steps.config.outputs.terraform-plan-role != 'null' }}
162
166
uses :
aws-actions/[email protected]
@@ -166,6 +170,13 @@ runs:
166
170
role-session-name : " atmos-terraform-plan-gitops"
167
171
mask-aws-account-id : " no"
168
172
173
+ - name : Configure Google Credentials
174
+ if : ${{ steps.config.outputs.backend == 'google' }}
175
+ uses : google-github-actions/auth@v2
176
+ with :
177
+ workload_identity_provider : ${{ steps.config.outputs.google-workload-identity-provider }}
178
+ service_account : ${{ steps.config.outputs.google-service-account }}
179
+
169
180
- name : atmos affected stacks for atmos pro
170
181
id : affected-pro
171
182
if : ${{ inputs.atmos-pro-upload == 'true' }}
0 commit comments