-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (32 loc) · 1.05 KB
/
dev-delete-cd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# # Copyright (c) 2018-2022 The MobileCoin Foundation
# #
# # MobileCoin full-service - Delete development namespaces when branch is removed.
# name: Mobilecoin Dev Clean Up
# on:
# delete: {}
# jobs:
# metadata:
# if: startsWith(github.event.ref, 'feature/')
# runs-on: [self-hosted, Linux, small]
# outputs:
# namespace: ${{ steps.meta.outputs.namespace }}
# steps:
# - name: Generate version metadata
# uses: mobilecoinofficial/gha-k8s-toolbox@v1
# id: meta
# with:
# action: generate-metadata
# prefix: fs
# delete:
# needs:
# - metadata
# runs-on: [self-hosted, Linux, small]
# steps:
# - name: Delete namespace
# uses: mobilecoinofficial/gha-k8s-toolbox@v1
# with:
# action: namespace-delete
# namespace: ${{ needs.metadata.outputs.namespace }}
# rancher_cluster: ${{ secrets.DEV_RANCHER_CLUSTER }}
# rancher_url: ${{ secrets.DEV_RANCHER_URL }}
# rancher_token: ${{ secrets.DEV_RANCHER_TOKEN }}