Merge pull request #130 from thecodingmachine/cleanup_namespace

Adding cleanup action on delete
This commit is contained in:
David Négrier 2020-05-27 22:25:58 +02:00 committed by GitHub
commit f8a5769a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
.github/workflows/cleanup.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Cleanup images and environments
on:
- delete
# Enables BuildKit
env:
DOCKER_BUILDKIT: 1
jobs:
delete_namespace:
runs-on: ubuntu-latest
steps:
# Create a slugified value of the branch
- uses: rlespinasse/github-slug-action@1.1.0
- name: Cleanup
uses: thecodingmachine/deeployer-cleanup-action@master
env:
KUBE_CONFIG_FILE: ${{ secrets.KUBE_CONFIG_FILE }}
with:
namespace: workadventure-${{ env.GITHUB_REF_SLUG }}