2020-05-27 22:20:08 +02:00
|
|
|
name: Cleanup images and environments
|
|
|
|
|
|
|
|
on:
|
2021-04-26 15:14:21 +02:00
|
|
|
pull_request:
|
|
|
|
types: [ closed ]
|
2020-05-27 22:20:08 +02:00
|
|
|
|
|
|
|
# Enables BuildKit
|
|
|
|
env:
|
|
|
|
DOCKER_BUILDKIT: 1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
delete_namespace:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
# Create a slugified value of the branch
|
2021-04-27 17:17:54 +02:00
|
|
|
- uses: rlespinasse/github-slug-action@3.1.0
|
2020-05-27 22:20:08 +02:00
|
|
|
|
|
|
|
- name: Cleanup
|
2020-05-27 22:30:42 +02:00
|
|
|
uses: thecodingmachine/deeployer-cleanup-action@master
|
2020-05-27 22:20:08 +02:00
|
|
|
env:
|
|
|
|
KUBE_CONFIG_FILE: ${{ secrets.KUBE_CONFIG_FILE }}
|
|
|
|
with:
|
2021-04-27 17:47:12 +02:00
|
|
|
namespace: workadventure-${{ env.GITHUB_HEAD_REF_SLUG }}
|