Test cleanup #88
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 cleanup | |
on: | |
workflow_dispatch: | |
inputs: | |
clusterId: | |
description: "Cluster ID" | |
required: true | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build: | |
name: cleanup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "17" | |
- name: Install utilities | |
run: | | |
sudo apt install -y gettext | |
- name: Get AWS credentials | |
uses: aws-actions/[email protected] | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | |
role-duration-seconds: 3600 | |
aws-region: ${{ secrets.AWS_REGION }} | |
role-session-name: GithubActionsSession | |
- name: Cleanup environment | |
timeout-minutes: 60 | |
env: | |
CLUSTER_ID: ${{ github.event.inputs.clusterId }} | |
AWS_REGION: "${{ secrets.AWS_REGION }}" | |
run: | | |
make destroy-infrastructure environment="$CLUSTER_ID" |