DOE-150: Add reusable container build workflow #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test Deploy Terraform stacks" | |
# Regression testing to try and catch and breaking changes | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- .github/workflows/terraform-plan-apply.yml | |
- .github/workflows/_test-terraform-plan-apply.yml | |
- .github/workflows/terraform-core.yml | |
jobs: | |
deploy_tf_stacks_regression_test: | |
name: Test using devops-terraform-example-project@main | |
uses: ./.github/workflows/terraform-plan-apply.yml | |
with: | |
repo: UKHSA-Internal/devops-terraform-example-project | |
ref: "main" | |
execute_terraform_plan: true | |
permissions: | |
packages: read | |
actions: read | |
contents: read | |
security-events: write | |
statuses: write | |
checks: write | |
id-token: write | |
secrets: | |
REPO_SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
AWS_ACCOUNT_ID: ${{ secrets.TEST_AWS_ACCOUNT_ID }} | |
AWS_ROLE_NAME: ${{ secrets.TEST_AWS_ROLE_NAME }} | |
TF_MODULES_SSH_DEPLOY_KEY: ${{ secrets.TF_MODULES_SSH_DEPLOY_KEY }} |