workadventure/.github/workflows/cleanup.yml

27 lines
677 B
YAML
Raw Normal View History

2020-05-27 22:20:08 +02:00
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
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:
# FIXME: we are not using ${{ env.GITHUB_REF_SLUG }} that resolves to master BUT! we are not using a slugified namespace
# so complex namespace names will not be treated correctly
namespace: workadventure-${{ github.event.ref }}