chore(deps): update actions/checkout digest to 93cb6ef #214
This file contains hidden or 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: Deploy Infrastructure | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| actions: write | |
| contents: read | |
| id-token: write | |
| concurrency: | |
| group: production | |
| env: | |
| # renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp | |
| TERRAFORM_VERSION: "1.13.4" | |
| jobs: | |
| deploy: | |
| environment: | |
| name: Production | |
| url: https://kitten-science.com | |
| name: Deploy | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 | |
| - uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3 | |
| with: | |
| terraform_version: ${{ env.TERRAFORM_VERSION }} | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8 # v5 | |
| with: | |
| role-to-assume: arn:aws:iam::022327457572:role/ks-infrastructure-maintainer | |
| aws-region: eu-west-1 | |
| - name: Terraform Init | |
| run: terraform init | |
| working-directory: terraform | |
| - name: Terraform Apply | |
| run: terraform apply -auto-approve -lock-timeout=20m | |
| working-directory: terraform | |
| # Ensure we only leave the deployment job for the latest | |
| # push in the action pipeline, after we have deployed this | |
| # change. | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1 | |
| with: | |
| all_but_latest: true |