mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Handle issue with workspace already existing
This commit is contained in:
parent
e40970df5c
commit
e3b68d56af
1 changed files with 3 additions and 1 deletions
4
.github/workflows/deploy_terraform.yml
vendored
4
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -52,7 +52,9 @@ jobs:
|
||||||
run: cd infrastructure/terraform && terraform plan -var-file=${{ github.event.pull_request.base.ref }}.tfvars
|
run: cd infrastructure/terraform && terraform plan -var-file=${{ github.event.pull_request.base.ref }}.tfvars
|
||||||
|
|
||||||
- name: Terraform Workspace
|
- name: Terraform Workspace
|
||||||
run: cd infrastructure/terraform && terraform workspace new ${{ github.event.pull_request.base.ref }}
|
run: |
|
||||||
|
cd infrastructure/terraform
|
||||||
|
terraform workspace select ${{ github.event.pull_request.base.ref }} || terraform workspace new ${{ github.event.pull_request.base.ref }}
|
||||||
|
|
||||||
- name: Deploy to Dev
|
- name: Deploy to Dev
|
||||||
if: github.event.pull_request.base.ref == 'dev' && github.event.pull_request.merged == true
|
if: github.event.pull_request.base.ref == 'dev' && github.event.pull_request.merged == true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue