Skip to content

feat(filter): enable multi-selection filter #1129

feat(filter): enable multi-selection filter

feat(filter): enable multi-selection filter #1129

name: CleanUp
on:
pull_request_target:
types: [ closed ]
jobs:
remove-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Stop container and remove folder
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd /var/docker/pr-${{ github.event.number }}
docker compose down
cd ..
rm -r pr-${{ github.event.number }}
- name: Delete Docker tag
run: |
token=$(curl -s -L 'https://hub.docker.com/v2/users/login' -H 'Content-Type: application/json' -d '{ "username": "${{ secrets.DOCKER_USERNAME }}", "password": "${{ secrets.DOCKER_PASSWORD }}"}')
token=${token#*\"token\":\"}
token=${token%%\"*}
curl -s -L -X DELETE "https://hub.docker.com/v2/namespaces/aamdigital/repositories/ndb-server/tags/pr-${{ github.event.number }}" -H "Authorization: Bearer $token"