1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Cleanup GitHub e2e repo

This commit is contained in:
stefanprodan
2020-09-09 10:14:46 +03:00
parent f6626b8975
commit afef6960b9
4 changed files with 36 additions and 14 deletions

View File

@@ -3,8 +3,7 @@ name: bootstrap
on:
push:
branches:
- master
- refac
- '*'
jobs:
github:
@@ -25,8 +24,6 @@ jobs:
go-version: 1.14.x
- name: Setup Kubernetes
uses: engineerd/setup-kind@v0.4.0
with:
image: kindest/node:v1.16.9
- name: Set outputs
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
@@ -40,6 +37,19 @@ jobs:
--path=test-cluster
env:
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
- name: uninstall
run: |
./bin/gotk suspend kustomization gitops-system
./bin/gotk uninstall --resources --crds -s
- name: delete repository
run: |
./bin/gotk bootstrap github \
--owner=fluxcd-testing \
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
--path=test-cluster \
--delete
env:
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
- name: Debug failure
if: failure()
run: |