File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 3
3
# secrets.CLIENT_SECRET
4
4
# secrets.GITHUB_TOKEN
5
5
# secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN
6
- # vars.SHEPHERD_POOL_NAME
6
+ # vars.TEST_FLAKE_ATTEMPTS
7
7
8
8
name : " pvt: run integration tests"
9
9
25
25
lease-namespace :
26
26
required : false
27
27
type : string
28
+ default : ' tas-devex'
28
29
gitRef :
29
30
type : string
30
31
default : ${{github.event.workflow_run.head_sha}}
72
73
73
74
- name : Install Tools
74
75
env :
75
- account_token : ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
76
- namespace : ${{ inputs.lease-namespace || vars.POOL_NAMESPACE || 'tas-devex' }}
76
+ account_token : ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
77
+ lease_namespace : ${{ inputs.lease-namespace }}
78
+ lease_id : ${{ inputs.lease-id }}
77
79
run : |
78
80
go version
79
81
@@ -107,7 +109,7 @@ jobs:
107
109
apt-get install -y build-essential unzip
108
110
109
111
shepherd login service-account ${account_token}
110
- shepherd get lease ${{ inputs.lease-id }} --namespace tas-devex --json | jq .output > metadata.json
112
+ shepherd get lease ${lease_id} --namespace ${lease_namespace} --json | jq .output > metadata.json
111
113
112
114
- name : Add CATS config
113
115
if : ${{ inputs.name == 'cats' }}
Original file line number Diff line number Diff line change 57
57
- " .golangci.json"
58
58
59
59
env :
60
- SHEPHERD_LEASE_ID : ${{ inputs.lease_id || vars.SHEPHERD_LEASE_ID }}
60
+ SHEPHERD_LEASE_ID : ${{ inputs.lease_id }}
61
61
62
62
jobs :
63
63
@@ -314,10 +314,10 @@ jobs:
314
314
steps :
315
315
- name : unclaim
316
316
env :
317
- account_token : ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
318
- namespace : ${{ vars.POOL_NAMESPACE || 'tas-devex' }}
317
+ account_token : ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
318
+ pool_namespace : ${{ vars.POOL_NAMESPACE || 'tas-devex' }}
319
319
run : |
320
320
shepherd login service-account ${account_token}
321
321
set -x
322
322
shepherd delete lease ${{ needs.claim-env.outputs.leaseid }} \
323
- --namespace ${namespace }
323
+ --namespace ${pool_namespace }
You can’t perform that action at this time.
0 commit comments