File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release images
2+ on :
3+ workflow_dispatch :
4+ release :
5+ types :
6+ - published # should work for both pre-releases and releases
7+ env :
8+ IMAGE_PATH : environments/.stackhpc/tofu/cluster_image.auto.tfvars.json
9+ jobs :
10+ ci-image-release :
11+ name : ci-image-release
12+ runs-on : ubuntu-22.04
13+ concurrency : ${{ github.workflow }}-${{ github.ref }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ build :
18+ - RL8
19+ - RL9
20+ steps :
21+ - uses : actions/checkout@v2
22+
23+ - name : Write s3cmd configuration
24+ run : echo "${{ secrets.ARCUS_S3_CFG }}" > ~/.s3cfg
25+
26+ - name : Install s3cmd
27+ run : |
28+ sudo apt-get update
29+ sudo apt-get --yes install s3cmd
30+
31+ - name : Retrieve image name
32+ run : |
33+ TARGET_IMAGE=$(jq --arg version "${{ matrix.build }}" -r '.cluster_image[$version]' "${{ env.IMAGE_PATH }}")
34+ echo "TARGET_IMAGE=${TARGET_IMAGE}" >> "$GITHUB_ENV"
35+
36+ - name : Copy image from pre-release to release bucket
37+ run : s3cmd cp s3://openhpc-images-prerelease/${{ env.TARGET_IMAGE }} s3://openhpc-images
You can’t perform that action at this time.
0 commit comments