Fix #44 Express quickstart add Nodejs. Limit app cpu #20
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: delete merged pr preview | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
Delete: | |
environment: production | |
runs-on: ubuntu-latest | |
steps: | |
- name: delete dokku app | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
DOKKU_HOST: ${{ secrets.DOKKU_HOST }} | |
run: | | |
set -x | |
mkdir -p ~/.ssh | |
ssh-keyscan ${{ secrets.DOKKU_HOST }}>> ~/.ssh/known_hosts | |
eval `ssh-agent -s` | |
ssh-add - <<< "$SSH_PRIVATE_KEY" | |
echo deleting dokku app ${{ github.head_ref }} | |
ssh dokku@$DOKKU_HOST -C "dokku -- --force apps:destroy ${{ github.head_ref }}" |