mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-10 14:10:05 +00:00
Cleanup GitHub e2e repo
This commit is contained in:
parent
f6626b8975
commit
afef6960b9
4 changed files with 36 additions and 14 deletions
18
.github/workflows/bootstrap.yaml
vendored
18
.github/workflows/bootstrap.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue