Skip to content

Commit 3937be0

Browse files
committed
eli-445 tidying up workflows
1 parent 6079ce2 commit 3937be0

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/base-deploy.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,9 @@ jobs:
194194
aws-region: eu-west-2
195195

196196
- name: "Deploy IAM roles (iams-developer-roles stack)"
197-
env:
198-
ENVIRONMENT: ${{ needs.metadata.outputs.environment }}
199197
working-directory: ./infrastructure
200198
run: |
201-
make terraform-init env=$ENVIRONMENT stack=iams-developer-roles
202-
terraform -chdir=./stacks/iams-developer-roles plan -var="environment=$ENVIRONMENT" -out=tfplan
203-
terraform -chdir=./stacks/iams-developer-roles apply -auto-approve tfplan
199+
make terraform env=${{ needs.metadata.outputs.environment }} stack=iams-developer-roles tf-command=apply workspace=default
204200
205201
- name: "Configure AWS Credentials (Main Deployment Role)"
206202
uses: aws-actions/configure-aws-credentials@v6

.github/workflows/cicd-2-publish.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,9 @@ jobs:
9494
aws-region: eu-west-2
9595

9696
- name: "Deploy IAM roles (iams-developer-roles stack)"
97-
env:
98-
ENVIRONMENT: dev
9997
working-directory: ./infrastructure
10098
run: |
101-
make terraform-init env=$ENVIRONMENT stack=iams-developer-roles
102-
terraform -chdir=./stacks/iams-developer-roles plan -var="environment=$ENVIRONMENT" -out=tfplan
103-
terraform -chdir=./stacks/iams-developer-roles apply -auto-approve tfplan
99+
make terraform env=dev stack=iams-developer-roles tf-command=apply workspace=default
104100
105101
- name: "Configure AWS Credentials (Main Deployment Role)"
106102
uses: aws-actions/configure-aws-credentials@v6

0 commit comments

Comments
 (0)