Skip to content

Commit

Permalink
wip github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
craigzour committed Apr 4, 2024
1 parent aed0e9a commit 5d16129
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 29 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-tag-push-update-lambda-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "Build, tag, push and update Lambda images"

jobs:
build-tag-push-update-lambda-images:
runs-on: ubuntu-latest
steps:
- name: Hello World
run: echo 'Hello World'
35 changes: 6 additions & 29 deletions .github/workflows/terragrunt-plan-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ jobs:
sqs:
- 'aws/sqs/**'
- 'env/cloud/sqs/**'
lambda_code:
- 'lambda-code/**'
# No dependencies
- name: Terragrunt plan ecr
Expand All @@ -154,6 +156,10 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
terragrunt: "true"

- name: Build, tag, push and update Lambda images
if: ${{ steps.filter.outputs.lambda_code == 'true' || steps.filter.outputs.common == 'true' }}
uses: ./.github/workflows/build-tag-push-update-lambda-images.yml

- name: Terragrunt plan hosted_zone
if: ${{ steps.filter.outputs.hosted_zone == 'true' || steps.filter.outputs.common == 'true' }}
uses: cds-snc/terraform-plan@28d2efe5155573489fa5b5816fad20d44d1f274b # v3.0.7
Expand Down Expand Up @@ -236,10 +242,6 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
terragrunt: "true"

- name: Install Cognito Lambda deps
if: ${{ steps.filter.outputs.cognito == 'true' || steps.filter.outputs.common == 'true' }}
run: ./aws/cognito/lambda/deps.sh install

- name: Terragrunt plan cognito
if: ${{ steps.filter.outputs.cognito == 'true' || steps.filter.outputs.common == 'true' }}
uses: cds-snc/terraform-plan@28d2efe5155573489fa5b5816fad20d44d1f274b # v3.0.7
Expand All @@ -250,10 +252,6 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
terragrunt: "true"

- name: Remove Cognito Lambda deps
if: ${{ steps.filter.outputs.cognito == 'true' || steps.filter.outputs.common == 'true' }}
run: ./aws/cognito/lambda/deps.sh delete

- name: Terragrunt plan network
if: ${{ steps.filter.outputs.network == 'true' || steps.filter.outputs.common == 'true' }}
uses: cds-snc/terraform-plan@28d2efe5155573489fa5b5816fad20d44d1f274b # v3.0.7
Expand Down Expand Up @@ -316,10 +314,6 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
terragrunt: "true"

- name: Install Lambda deps
if: ${{ steps.filter.outputs.lambdas == 'true' || steps.filter.outputs.common == 'true' }}
run: ./aws/lambdas/code/deps.sh install

- name: Terragrunt plan lambdas
if: ${{ steps.filter.outputs.lambdas == 'true' || steps.filter.outputs.common == 'true' }}
uses: cds-snc/terraform-plan@28d2efe5155573489fa5b5816fad20d44d1f274b # v3.0.7
Expand All @@ -330,14 +324,6 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
terragrunt: "true"

- name: Remove Lambda deps
if: ${{ steps.filter.outputs.lambdas == 'true' || steps.filter.outputs.common == 'true' }}
run: ./aws/lambdas/code/deps.sh delete

- name: Install Lambda Alarms deps
if: ${{ steps.filter.outputs.alarms == 'true' || steps.filter.outputs.common == 'true' }}
run: ./aws/alarms/lambda/deps.sh install

- name: Terragrunt plan alarms
if: ${{ steps.filter.outputs.alarms == 'true' || steps.filter.outputs.common == 'true' }}
uses: cds-snc/terraform-plan@28d2efe5155573489fa5b5816fad20d44d1f274b # v3.0.7
Expand All @@ -348,15 +334,6 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
terragrunt: "true"

- name: Remove Lambda Alarms deps
if: ${{ steps.filter.outputs.alarms == 'true' || steps.filter.outputs.common == 'true' }}
run: ./aws/alarms/lambda/deps.sh delete

- name: Build Load Testing Lambda Container
if: ${{ steps.filter.outputs.load_testing == 'true' || steps.filter.outputs.common == 'true' }}
working-directory: aws/load_testing/lambda
run: docker build -t load_testing_lambda:latest .

- name: Terragrunt plan load_testing
if: ${{ steps.filter.outputs.load_testing == 'true' || steps.filter.outputs.common == 'true' }}
uses: cds-snc/terraform-plan@28d2efe5155573489fa5b5816fad20d44d1f274b # v3.0.7
Expand Down

0 comments on commit 5d16129

Please sign in to comment.