mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
fix working directory
This commit is contained in:
parent
58d587f902
commit
24cdd393d8
1 changed files with 6 additions and 4 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -5,7 +5,10 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
terraform-test:
|
terraform-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: hashicorp/terraform:1.9.8
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
working-directory: ./terraform
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -13,12 +16,11 @@ jobs:
|
||||||
uses: hashicorp/setup-terraform@v3
|
uses: hashicorp/setup-terraform@v3
|
||||||
with:
|
with:
|
||||||
terraform_version: 1.9.8
|
terraform_version: 1.9.8
|
||||||
project_id: ${{ secrets.PROJECT_ID }}
|
|
||||||
- name: Validate Terraform Configuration
|
- name: Validate Terraform Configuration
|
||||||
run: terraform -chdir=terraform init
|
run: terraform init
|
||||||
env:
|
env:
|
||||||
GOOGLE_CREDENTIALS: ${{ secrets.GCP_JSON }}
|
GOOGLE_CREDENTIALS: ${{ secrets.GCP_JSON }}
|
||||||
- name: Dry run Terraform
|
- name: Dry run Terraform
|
||||||
run: terraform -chdir=terraform plan -var-file=terraform/variables.tfvars
|
run: terraform plan -var-file=variables.tfvars
|
||||||
env:
|
env:
|
||||||
GOOGLE_CREDENTIALS: ${{ secrets.GCP_JSON }}
|
GOOGLE_CREDENTIALS: ${{ secrets.GCP_JSON }}
|
Loading…
Reference in a new issue