Skip to content

Commit

Permalink
update development-pipeline-deletion-event.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaior authored Mar 8, 2024
1 parent 3f11e48 commit 12be4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/development-pipeline-deletion-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
cd .terraform/pipeline
terraform workspace select $BRANCH_NAME
echo "Current Workspace is $(terraform workspace show)"
sed -i "/stage_vars = {/a \ \ \"\${{ env.BRANCH_NAME }}\" = {\n \ \ \ branch = \"\${{ env.BRANCH_NAME }}\"\n \ \ }" terraform.tfvars
- name: Check Terraform Workspace
if: env.VALID_BRANCH == 'true'
Expand All @@ -68,7 +69,6 @@ jobs:
if: env.VALID_BRANCH == 'true' && env.TF_IS_EMPTY == 'false'
run: |
cd .terraform/pipeline
sed -i "/stage_vars = {/a \ \ \"\${{ env.BRANCH_NAME }}\" = {\n \ \ \ branch = \"\${{ env.BRANCH_NAME }}\"\n \ \ }" terraform.tfvars
sed -i '/^resource "aws_s3_bucket" "codepipeline_bucket" {/a force_destroy = true' main.tf
terraform apply -auto-approve -var="buildspec_file_name=development-buildspec.yml"
Expand All @@ -88,4 +88,4 @@ jobs:
- name: NOTHING TO DO
if: env.VALID_BRANCH == 'false'
run: echo "THIS BRANCH DOES NOT CREATE A NEW AWS CODEPIPELINE"
run: echo "THIS BRANCH DOES NOT CREATE A NEW AWS CODEPIPELINE"

0 comments on commit 12be4ad

Please sign in to comment.