Skip to content

Deploy Test

Deploy Test #42

Workflow file for this run

name: Deploy Test
on:
workflow_run:
workflows:
- Tag-Test
types:
- completed
env:
IMAGE_ID: ${{ secrets.AWS_ECR_URI }}
TF_VERSION: 1.0.5
TG_VERSION: 0.31.4
TG_SRC_PATH: terraform
TFC_WORKSPACE: test
permissions:
id-token: write
contents: read
jobs:
cd:
name: cd
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_branch }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_USE_TEST }}
aws-region: ${{ secrets.AWS_REGION }}
- uses: peter-murray/[email protected]
with:
terragrunt_version: ${{ env.TG_VERSION }}
- name: Terragrunt Apply
working-directory: ${{ env.TG_SRC_PATH }}/${{ env.TFC_WORKSPACE }}
env:
app_image: ${{ env.IMAGE_ID }}:${{ github.event.workflow_run.head_branch}}
LICENSE_PLATE: ${{ secrets.MY_LICENSE_PLATE }}
run: terragrunt run-all apply --terragrunt-non-interactive