-
Notifications
You must be signed in to change notification settings - Fork 593
44 lines (41 loc) · 1.37 KB
/
cleanup.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
37
38
39
40
41
42
43
44
name: cleanup
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch: {}
jobs:
gcloud:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
environment: gcloud
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: cleanup orphaned test clusters
run: go run ./hack/cleanup gke
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
GOOGLE_PROJECT: ${{ secrets.GOOGLE_PROJECT }}
GOOGLE_LOCATION: ${{ secrets.GOOGLE_LOCATION }}
konnect:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: cleanup orphaned test clusters
run: go run ./hack/cleanup konnect
env:
# Ref: https://github.com/Kong/sdk-konnect-go/issues/20
KONG_CUSTOM_DOMAIN: konghq.tech
# NOTE: This token has to align with the domain above until the linked
# issue is resolved.
TEST_KONG_KONNECT_ACCESS_TOKEN: ${{ secrets.K8S_TEAM_KONNECT_ACCESS_TOKEN }}