1
1
name : CI Manual
2
-
3
2
on :
4
3
workflow_dispatch :
5
4
inputs :
6
- dex_repo :
7
- description : " dex_repo sha used for building the binary "
5
+ branch :
6
+ description : " Branch to build image from "
8
7
required : true
9
- default : " main"
10
- type : string
11
- push :
12
- branches : [ master ]
13
- pull_request :
14
-
15
-
8
+ default : " master"
9
+ release_name :
10
+ description : " A overridden tag name for the release for e.g. v10.0.0-beta.1-hot-fix"
11
+ required : false
12
+ type : string
13
+
16
14
permissions :
17
15
contents : read
18
16
19
-
20
-
21
-
22
17
jobs :
23
18
test :
24
19
name : Test
@@ -76,18 +71,15 @@ jobs:
76
71
options : --health-cmd "curl --fail http://localhost:5000/v3" --health-interval 10s --health-timeout 5s --health-retries 5
77
72
78
73
steps :
79
- - name : Checkout dex branch
80
- uses : actions/checkout@v4
74
+ - name : Checkout repository
75
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
81
76
with :
82
- repository : openobserve/dex
83
- ref : ${{ github.event.inputs.dex_repo }}
84
- fetch-depth : 0
85
- path : dex
77
+ ref : ${{ github.event.inputs.branch }} # Checkout the selected branch
86
78
87
79
- name : Set up Go
88
- uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
80
+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
89
81
with :
90
- go-version : " 1.21 "
82
+ go-version : " 1.24 "
91
83
92
84
- name : Download tool dependencies
93
85
run : make deps
99
91
run : docker compose -f docker-compose.test.yaml up -d
100
92
101
93
- name : Create kind cluster
102
- uses : helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10 .0
94
+ uses : helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12 .0
103
95
with :
104
96
version : " v0.17.0"
105
97
node_image : " kindest/node:v1.25.3@sha256:cd248d1438192f7814fbca8fede13cfe5b9918746dfa12583976158a834fd5c5"
@@ -150,12 +142,14 @@ jobs:
150
142
151
143
steps :
152
144
- name : Checkout repository
153
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
145
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
146
+ with :
147
+ ref : ${{ github.event.inputs.branch }} # Ensure correct branch is checked out
154
148
155
149
- name : Set up Go
156
- uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
150
+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
157
151
with :
158
- go-version : " 1.21 "
152
+ go-version : " 1.24 "
159
153
160
154
- name : Download golangci-lint
161
155
run : make bin/golangci-lint
@@ -167,7 +161,10 @@ jobs:
167
161
name : Artifacts
168
162
uses : ./.github/workflows/artifacts.yaml
169
163
with :
170
- publish : ${{ github.event_name == 'push' }}
164
+ branch : ${{ github.event.inputs.branch }} # Pass branch input to artifacts.yaml
165
+ publish : true
166
+ release_name : ${{ github.event.inputs.release_name }} # Pass release_name to artifacts.yaml
167
+
171
168
secrets :
172
169
AWS_ROLE_ARN : ${{ secrets.AWS_ROLE_ARN }}
173
170
AWS_REGION : ${{ secrets.AWS_REGION }}
@@ -177,15 +174,4 @@ jobs:
177
174
packages : write
178
175
id-token : write
179
176
security-events : write
180
-
181
- dependency-review :
182
- name : Dependency review
183
- runs-on : ubuntu-latest
184
- if : github.event_name == 'pull_request'
185
-
186
- steps :
187
- - name : Checkout repository
188
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
189
-
190
- - name : Dependency Review
191
- uses : actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
177
+
0 commit comments