File tree Expand file tree Collapse file tree 2 files changed +2
-28
lines changed
Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: PR Workflow
33on :
44 pull_request :
55 types :
6+ - synchronize
67 - closed
78
89defaults :
1617 GH_TOKEN : ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}
1718
1819jobs :
19- create-dev-cluster :
20- runs-on : ubuntu-latest
21- steps :
22- - uses : stackrox/actions/infra/create-cluster@v1
23- with :
24- flavor : gke-default
25- name : infra-pr-${{ github.event.pull_request.number }}
26- args : machine-type=e2-medium,nodes=3,gcp-image-type=ubuntu_containerd
27- lifespan : ${{ github.actor == 'dependabot[bot]' && '1h' || '24h' }}
28- wait : true
29- token : ${{ secrets.INFRA_TOKEN }}
30-
31- deploy-and-test :
20+ destroy :
3221 runs-on : ubuntu-latest
3322 env :
3423 KUBECONFIG : /tmp/kubeconfig
@@ -37,27 +26,13 @@ jobs:
3726 USE_GKE_GCLOUD_AUTH_PLUGIN : " True"
3827
3928 steps :
40- - uses : actions/setup-go@v5
41- with :
42- go-version : " 1.23"
43-
4429 - name : Checkout
4530 uses : actions/checkout@v4
4631 with :
4732 fetch-depth : 0
4833 ref : ${{ github.event.pull_request.head.sha }}
4934 path : go/src/github.com/stackrox/infra
5035
51- - name : Authenticate to GCloud
52- uses : google-github-actions/auth@v2
53- with :
54- credentials_json : ${{ secrets.INFRA_CI_AUTOMATION_GCP_SA }}
55-
56- - name : Set up Cloud SDK
57- uses : " google-github-actions/setup-gcloud@v2"
58- with :
59- install_components : " gke-gcloud-auth-plugin"
60-
6136 - name : Download production infractl
6237 uses : stackrox/actions/infra/install-infractl@v1
6338
Original file line number Diff line number Diff line change 44 pull_request :
55 types :
66 - opened
7- - synchronize
87
98defaults :
109 run :
You can’t perform that action at this time.
0 commit comments