Skip to content

Commit

Permalink
(iac) retrive gcp project id on my cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Alexandre35 committed Nov 2, 2024
1 parent 67fbb29 commit b86413b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ jobs:
- name: Apply Terraform
working-directory: iac
id: terraform
run: terraform apply -auto-approve \
-var="region=${{ secrets.GCP_REGION }}" \
-var="bucket_name=${{ secrets.GCP_BUCKET_NAME }}" \
-var="service_account_id=${{ secrets.GCP_SERVICE_ACCOUNT_ID }}" \
-var="billing_account_id=${{ secrets.GCP_BILLING_ACCOUNT_ID }}"
run: terraform apply -auto-approve \
-var="region=${{ secrets.GCP_REGION }}" \
-var="bucket_name=${{ secrets.GCP_BUCKET_NAME }}" \
-var="service_account_id=${{ secrets.GCP_SERVICE_ACCOUNT_ID }}" \
-var="billing_account_id=${{ secrets.GCP_BILLING_ACCOUNT_ID }}"
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GCP_SA_KEY }}


- name: Get project ID from Terraform output
working-directory: iac
id: get_gcp_project_id
Expand Down

0 comments on commit b86413b

Please sign in to comment.