Skip to content

Chore: Upgrade to dot net 8 #3

Chore: Upgrade to dot net 8

Chore: Upgrade to dot net 8 #3

Workflow file for this run

permissions:
contents: read
id-token: write
on:
pull_request:
types: [closed]
branches:
- dev
name: cleanup
jobs:
build:
runs-on: ubuntu-latest
environment: check
env:
SERVICE: ${{ vars.SERVICE }}
CDK_DEFAULT_REGION: ${{ vars.CDK_DEFAULT_REGION }}
CDK_DEFAULT_ACCOUNT: ${{ vars.CDK_DEFAULT_ACCOUNT }}
TAG: ${{ github.sha }}
name: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Run detect stage
id: vars
run: |
echo "STAGE=$(echo ${{github.head_ref}} | sed -r 's/[^a-z0-9-]/-/gi' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.CDK_DEFAULT_ACCOUNT }}:role/github-actions
role-duration-seconds: 900
aws-region: ${{ env.CDK_DEFAULT_REGION }}
- name: Run cdk destroy
run: |
npx cdk destroy ${{ env.SERVICE }}-${{ env.STAGE }}-app --force
npx cdk destroy ${{ env.SERVICE }}-${{ env.STAGE }}-ecr --force