99
99
echo "VERSION_TAG=v$V" >> $GITHUB_ENV
100
100
echo "VS_TAG=everest-test$TIMESTAMP" >> $GITHUB_ENV
101
101
102
+ - name : Create temporary directory for storing artifacts
103
+ run : |
104
+ mkdir -p /tmp/${VERSION}
102
105
103
106
- name : Set GO_VERSION environment variable
104
107
run : |
@@ -211,15 +214,9 @@ jobs:
211
214
CRD_VERSION=${{ env.VERSION_TAG }} make crds-gen
212
215
make release-dev
213
216
214
- - name : Helm - Create tar.gz archive
217
+ - name : Helm - copy chart
215
218
run : |
216
- tar -czvf helm.tar.gz percona-helm-charts/charts/everest
217
-
218
- - name : Helm - Upload artifact
219
- uses : actions/upload-artifact@v4
220
- with :
221
- name : helm
222
- path : helm.tar.gz
219
+ cp -r percona-helm-charts/charts/everest /tmp/${{ env.VERSION }}/helm-chart
223
220
224
221
- name : Operator - check out again
225
222
uses : actions/checkout@v4
@@ -353,45 +350,19 @@ jobs:
353
350
RELEASE_VERSION=${VERSION_TAG} CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make rc
354
351
RELEASE_VERSION=${VERSION_TAG} make release-cli
355
352
356
- - name : Upload CLI artefacts
357
- uses : actions/upload-artifact@v4
358
- id : cli-upload-step-1
359
- with :
360
- name : everestctl.exe
361
- path : ./dist/everestctl.exe
362
- retention-days : ${{ env.ARTIFACTS_RETENTION_DAYS }}
363
-
364
- - name : Upload CLI artefacts
365
- uses : actions/upload-artifact@v4
366
- id : cli-upload-step-2
367
- with :
368
- name : everestctl-darwin-amd64
369
- path : ./dist/everestctl-darwin-amd64
370
- retention-days : ${{ env.ARTIFACTS_RETENTION_DAYS }}
371
-
372
- - name : Upload CLI artefacts
373
- uses : actions/upload-artifact@v4
374
- id : cli-upload-step-3
375
- with :
376
- name : everestctl-darwin-arm64
377
- path : ./dist/everestctl-darwin-arm64
378
- retention-days : ${{ env.ARTIFACTS_RETENTION_DAYS }}
379
-
380
- - name : Upload CLI artefacts
381
- uses : actions/upload-artifact@v4
382
- id : cli-upload-step-4
383
- with :
384
- name : everestctl-linux-amd64
385
- path : ./dist/everestctl-linux-amd64
386
- retention-days : ${{ env.ARTIFACTS_RETENTION_DAYS }}
353
+ - name : Everest - copy CLI builds
354
+ run : |
355
+ cp dist/everestctl.exe /tmp/${VERSION}/everestctl.exe
356
+ cp dist/everestctl-darwin-amd64 /tmp/${VERSION}/everestctl-darwin-amd64
357
+ cp dist/everestctl-darwin-arm64 /tmp/${VERSION}/everestctl-darwin-arm64
358
+ cp dist/everestctl-linux-amd64 /tmp/${VERSION}/everestctl-linux-amd64
359
+ cp dist/everestctl-linux-arm64 /tmp/${VERSION}/everestctl-linux-arm64
387
360
388
- - name : Upload CLI artefacts
389
- uses : actions/upload-artifact@v4
390
- id : cli-upload-step-5
391
- with :
392
- name : everestctl-linux-arm64
393
- path : ./dist/everestctl-linux-arm64
394
- retention-days : ${{ env.ARTIFACTS_RETENTION_DAYS }}
361
+ - name : Everest - copy feature build helper scripts
362
+ run : |
363
+ cp dev/fb/cli.sh /tmp/${VERSION}/cli.sh
364
+ cp dev/fb/helm.sh /tmp/${VERSION}/helm.sh
365
+ cp dev/fb/vs.sh /tmp/${VERSION}/vs.sh
395
366
396
367
- name : Everest - push Everest image
397
368
uses : docker/build-push-action@v6
@@ -402,47 +373,37 @@ jobs:
402
373
403
374
- name : Create vs_tag file
404
375
run : |
405
- echo "$VS_TAG" > vs_tag.txt
406
- echo "$VERSION" > fb .txt
376
+ echo "$VS_TAG" > /tmp/${VERSION}/ vs_tag.txt
377
+ echo "$VERSION" > /tmp/${VERSION}/version .txt
407
378
408
- - name : Upload VS tag info artefact
409
- uses : actions/upload-artifact@v4
410
- id : vs_file
411
- with :
412
- name : vs_tag.txt
413
- path : ./vs_tag.txt
414
- retention-days : ${{ env.ARTIFACTS_RETENTION_DAYS }}
379
+ - name : Version Service - create deployment manifest
380
+ run : |
381
+ curl https://raw.githubusercontent.com/Percona-Lab/percona-version-service/main/deploy.yaml > /tmp/${VERSION}/vs_deploy.yaml
382
+ sed -i "s/perconalab\/version-service:.*/perconalab\/version-service:$VS_TAG/g" /tmp/${VERSION}/vs_deploy.yaml
415
383
416
384
417
- - name : Upload FB info artefact
385
+ - name : Upload artifacts
418
386
uses : actions/upload-artifact@v4
419
- id : fb_file
420
387
with :
421
- name : fb.txt
422
- path : ./fb.txt
388
+ name : ${{ env.VERSION }}
389
+ path : /tmp/${{ env.VERSION }}
423
390
retention-days : ${{ env.ARTIFACTS_RETENTION_DAYS }}
424
391
425
392
- name : Info
426
393
run : |
427
394
printf "To install FB using helm:\n\
428
- 1. Download the 'helm' artifact below.\n\
429
- 2. Navigate to \`/everest/dev/fb directory\`.\n\
430
- 3. Run the command:\n\`\`\`VS_IMAGE=$VS_TAG HELM_PATH=<path_to_your_helmchart> bash helm.sh\`\`\`\n\
431
- \nexample:\n\`\`\`VS_IMAGE=$VS_TAG HELM_PATH=/Users/oxana/Downloads/percona-helm-charts bash helm.sh\`\`\`\n" >> "$GITHUB_STEP_SUMMARY"
395
+ 1. Download and unzip the \`$VERSION\` artifact below.\n\
396
+ 2. Run the command:\n\`\`\`./helm.sh\`\`\`\n" >> "$GITHUB_STEP_SUMMARY"
432
397
433
398
printf "____________________\n" >> "$GITHUB_STEP_SUMMARY"
434
399
435
400
printf "To install FB using CLI:\n\
436
- 1. Download the 'helm' artifact below.\n\
437
- 2. Download a CLI build from artifacts below.\n\
438
- 3. Navigate to \`/everest/dev/fb\` directory.\n\
439
- 4. Run the command:\n\`\`\`VS_IMAGE=$VS_TAG VERSION=$VERSION EVEREST_CTL_PATH=<path_to_everestctl> HELM_PATH=<path_to_your_helmchart> bash cli.sh\`\`\`\n\
440
- \nexample:\n\`\`\`VS_IMAGE=$VS_TAG VERSION=$VERSION HELM_PATH=/Users/oxana/Downloads/percona-helm-charts EVEREST_CTL_PATH=/Users/oxana/Downloads/everestctl-darwin-arm64 bash cli.sh\`\`\`\n" >> "$GITHUB_STEP_SUMMARY"
441
-
401
+ 1. Download and unzip the \`$VERSION\` artifact below.\n\
402
+ 2. Run the command:\n\`\`\`./cli.sh\`\`\`\n" >> "$GITHUB_STEP_SUMMARY"
442
403
443
404
printf "____________________\n" >> "$GITHUB_STEP_SUMMARY"
444
405
445
406
printf "To clean up the environment after a FB:\n\
446
407
1. Delete VS: \`kubectl delete deployment percona-version-service && kubectl delete svc percona-version-service\`\n\
447
- 2. Uninstall Everest using the FB everestctl build: \`<path_to_everestctl > uninstall --assume-yes --force\` \n" >> "$GITHUB_STEP_SUMMARY"
408
+ 2. Uninstall Everest using the FB everestctl build: \`./<everestctl-OS-ARCH > uninstall --assume-yes --force\` \n" >> "$GITHUB_STEP_SUMMARY"
448
409
0 commit comments