Skip to content

fix: make the dashboard reactive on org changes #88

fix: make the dashboard reactive on org changes

fix: make the dashboard reactive on org changes #88

# SPDX-FileCopyrightText: 2024 The Forkbomb Company
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Destroy Ephemeral deployment
on:
pull_request:
types: [closed]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read # for checkout@v4
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Configure 🔒🐚
run: |
mkdir -p ~/.ssh/
echo "$SSH_SKEY" > ~/.ssh/staging.key
chmod 600 ~/.ssh/staging.key
cat >>~/.ssh/config <<END
Host remote
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/staging.key
IdentitiesOnly yes
StrictHostKeyChecking no
Port $SSH_PORT
END
env:
SSH_USER: ${{ secrets.GA_DEPLOY_USER }}
SSH_HOST: ${{ secrets.GA_DEPLOY_HOST }}
SSH_PORT: ${{ secrets.GA_DEPLOY_PORT }}
SSH_SKEY: ${{ secrets.GA_DEPLOY_SK }}
- run: |
ssh remote './ephemeral_destroy.sh ${{ github.event.number }}'