Skip to content

Commit

Permalink
fixing to shell script environment reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaucier-sf committed Jan 4, 2024
1 parent 1c1d2d1 commit 326dde9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-backstage-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ jobs:
- name: Initialize backend
shell: bash
run: |
ENV=prod ./scripts/action-init-plan-apply.sh -i
./scripts/action-init-plan-apply.sh -i prod
continue-on-error: false

# Running plan
- name: Plan against Prod
id: prod_plan
shell: bash
run: |
ENV=prod ./scripts/action-init-plan-apply.sh -a prod
./scripts/action-init-plan-apply.sh -a prod
continue-on-error: false

#publish plan to artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/plan-backstage-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ jobs:
- name: Initialize backend
shell: bash
run: |
ENV=prod ./scripts/action-init-plan-apply.sh -i
./scripts/action-init-plan-apply.sh -i prod
continue-on-error: false

# Running plan
- name: Plan against Prod
id: prod_plan
shell: bash
run: |
ENV=prod ./scripts/action-init-plan-apply.sh -p prod
./scripts/action-init-plan-apply.sh -p prod
continue-on-error: false

#publish plan to artifacts
Expand Down
2 changes: 1 addition & 1 deletion scripts/action-init-plan-apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ while getopts "hip:a:z:" option; do
help
;;
i) #initialise backend
export ENV=poc
export ENV=$OPTARG
INIT=true
;;
p) #run plan
Expand Down

0 comments on commit 326dde9

Please sign in to comment.