Skip to content

chore: TEST workflow_run trigger on push_tests #120

chore: TEST workflow_run trigger on push_tests

chore: TEST workflow_run trigger on push_tests #120

name: Delete rdev for PR
on:
pull_request:
branches-ignore:
- prod
types:
- closed
env:
# Force using BuildKit instead of normal Docker, required so that metadata
# is written/read to allow us to use layers of previous builds as cache.
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_REPO: ${{ secrets.ECR_REPO }}/
STACK_NAME: pr-${{ github.event.number }}
permissions:
id-token: write
contents: read
# prevent the rdev from being updated in concurrent GHA
concurrency:
group: pr-${{ github.event.number }}
cancel-in-progress: false
jobs:
delete-rdev:
runs-on: ubuntu-22.04
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-duration-seconds: 900
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Delete deployment
uses: chanzuckerberg/github-actions/.github/actions/deploy-happy-stack@deploy-happy-stack-v1.7.2
with:
tfe-token: ${{ secrets.TFE_TOKEN }}
stack-name: ${{ env.STACK_NAME }}
operation: delete
happy_version: "0.92.0"