mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
add terraform testing to CI
This commit is contained in:
parent
cf2597c60c
commit
9eaebade69
1 changed files with 18 additions and 0 deletions
18
github-actions.yml
Normal file
18
github-actions.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
jobs:
|
||||
terraform-test:
|
||||
runs-on: ubuntu-latest
|
||||
container: cedricguadalupe/terraform-gcloud
|
||||
steps:
|
||||
- name: Set GCP project
|
||||
run: gcloud config set project $PROJECT_ID
|
||||
- name: Setup GCP authentication
|
||||
run: echo "$BASE64_ENV_VAR" | base64 --decode > output_file.txt
|
||||
- run: gcloud auth activate-service-account --key-file output_file.txt
|
||||
- name: Initiate Terraform
|
||||
run: terraform init
|
||||
- name: Dry run Terraform
|
||||
run: terraform plan
|
Loading…
Reference in a new issue