11name : Arm AL2023 Smoke Test WorkFlow
22permissions :
33 contents : read
4- checks : write
54 packages : write
65 id-token : write
76 pull-requests : write
87on :
9- workflow_dispatch :
8+ workflow_dispatch :
109 inputs :
1110 splunk_image_repository_tag :
1211 description : ' Splunk AL2023-based Docker Image repository and tag (e.g. repository-name:tag)'
1817 - uses : actions/checkout@v2
1918 - name : Dotenv Action
2019 id : dotenv
21- uses : falti/dotenv-action@v1
20+ uses : falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
2221 - name : Setup Go
2322 uses : actions/setup-go@v2
2423 with :
3433 - uses : actions/checkout@v2
3534 - name : Dotenv Action
3635 id : dotenv
37- uses : falti/dotenv-action@v1
36+ uses : falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
3837 - name : Setup Go
3938 uses : actions/setup-go@v2
4039 with :
@@ -51,25 +50,11 @@ jobs:
5150 run : make test
5251 - name : Run Code Coverage
5352 run : goveralls -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }}
54- continue-on-error : true
5553 - name : Upload Coverage artifacts
56- uses : actions/upload-artifact@v6
54+ uses : actions/upload-artifact@v4.4.0
5755 with :
5856 name : coverage.out
5957 path : coverage.out
60- - name : Upload Unit Test Results
61- if : always()
62- uses : actions/upload-artifact@v6
63- with :
64- name : test-report-unit
65- path : unit_test*.xml
66- - name : Publish Unit Test Report
67- uses : mikepenz/action-junit-report@v6
68- if : always()
69- with :
70- report_paths : ' unit_test*.xml'
71- check_name : ' Unit Test Results (ARM AL2023)'
72- detailed_summary : true
7358 build-operator-image-arm-al2023 :
7459 runs-on : ubuntu-latest
7560 needs : unit-tests
@@ -80,12 +65,12 @@ jobs:
8065 S3_REGION : ${{ secrets.AWS_DEFAULT_REGION }}
8166 steps :
8267 - name : Set up cosign
83- uses : sigstore/cosign-installer@v4.0.0
68+ uses : sigstore/cosign-installer@main
8469
8570 - uses : actions/checkout@v2
8671 - name : Dotenv Action
8772 id : dotenv
88- uses : falti/dotenv-action@v1
73+ uses : falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
8974 - name : Setup Go
9075 uses : actions/setup-go@v2
9176 with :
11297 role-duration-seconds : ${{ vars.AWS_ROLE_DURATION_SECONDS }}
11398 - name : Login to Amazon ECR
11499 id : login-ecr
115- uses : aws-actions/amazon-ecr-login@v2
100+ uses : aws-actions/amazon-ecr-login@v1
116101 - name : Build and push Splunk Operator Image
117102 run : |
118103 export PLATFORMS=linux/arm64,linux/amd64
@@ -136,7 +121,6 @@ jobs:
136121 appframeworksS1,
137122 managersecret,
138123 managermc,
139- indingsep,
140124 ]
141125 runs-on : ubuntu-latest
142126 env :
@@ -162,8 +146,6 @@ jobs:
162146 DEPLOYMENT_TYPE : " "
163147 ARM64 : " true"
164148 GRAVITON_TESTING : " true"
165- AWS_INDEX_INGEST_SEP_ACCESS_KEY_ID : ${{ secrets.AWS_INDEX_INGEST_SEP_ACCESS_KEY_ID }}
166- AWS_INDEX_INGEST_SEP_SECRET_ACCESS_KEY : ${{ secrets.AWS_INDEX_INGEST_SEP_SECRET_ACCESS_KEY }}
167149 steps :
168150 - name : Chekcout code
169151 uses : actions/checkout@v2
@@ -180,7 +162,7 @@ jobs:
180162 echo "TEST_CLUSTER_NAME=${{ steps.set-cluster-name.outputs.cluster-name }}" >> $GITHUB_ENV
181163 - name : Dotenv Action
182164 id : dotenv
183- uses : falti/dotenv-action@v1
165+ uses : falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
184166 - name : Change splunk enterprise to release image on main branches
185167 if : github.ref == 'refs/heads/main'
186168 run : |
@@ -222,7 +204,7 @@ jobs:
222204 sudo curl -L -o /usr/local/bin/operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}/operator-sdk-${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}-x86_64-linux-gnu
223205 sudo chmod +x /usr/local/bin/operator-sdk
224206 - name : Configure Docker Hub credentials
225- uses : docker/login-action@v3
207+ uses : docker/login-action@v1
226208 with :
227209 username : ${{ secrets.DOCKERHUB_USERNAME }}
228210 password : ${{ secrets.DOCKERHUB_TOKEN}}
@@ -238,7 +220,7 @@ jobs:
238220 role-duration-seconds : ${{ vars.AWS_ROLE_DURATION_SECONDS }}
239221 - name : Login to Amazon ECR
240222 id : login-ecr
241- uses : aws-actions/amazon-ecr-login@v2
223+ uses : aws-actions/amazon-ecr-login@v1
242224 - name : Pull Splunk Enterprise Image
243225 run : docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
244226 - name : Create EKS cluster
@@ -262,7 +244,6 @@ jobs:
262244 id : smoketest
263245 timeout-minutes : 240
264246 env :
265- TEST_TIMEOUT : 225m
266247 TEST_S3_ACCESS_KEY_ID : ${{ vars.TEST_S3_ACCESS_KEY_ID }}
267248 TEST_S3_SECRET_ACCESS_KEY : ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
268249 run : |
@@ -274,23 +255,10 @@ jobs:
274255 find ./test -name "*.log" -exec cp {} /tmp/pod_logs \;
275256 - name : Archive Pod Logs
276257 if : ${{ always() }}
277- uses : actions/upload-artifact@v6
258+ uses : actions/upload-artifact@v4.4.0
278259 with :
279260 name : " splunk-pods-logs--artifacts-${{ matrix.test }}"
280261 path : " /tmp/pod_logs/**"
281- - name : Upload Smoke Test Results
282- if : always()
283- uses : actions/upload-artifact@v6
284- with :
285- name : " test-report-smoke-arm-al2023-${{ matrix.test }}"
286- path : report-junit*.xml
287- - name : Publish Smoke Test Report
288- uses : mikepenz/action-junit-report@v6
289- if : always()
290- with :
291- report_paths : ' report-junit*.xml'
292- check_name : ' Smoke Test Results (ARM AL2023) - ${{ matrix.test }}'
293- detailed_summary : true
294262 - name : Cleanup Test Case artifacts
295263 if : ${{ always() }}
296264 run : |
0 commit comments