Skip to content

v2.20

v2.20 #31

Workflow file for this run

name: Release images
'on':
workflow_dispatch:
release:
types:
- published # should work for both pre-releases and releases
env:
IMAGE_PATH: environments/.stackhpc/tofu/cluster_image.auto.tfvars.json
permissions: {}
jobs:
ci-image-release:
name: ci-image-release
runs-on: ubuntu-24.04
concurrency: ${{ github.workflow }}-${{ github.ref }}
strategy:
fail-fast: false
matrix:
build:
- RL8
- RL9
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Write s3cmd configuration
run: echo "$SECRETS_LEAFCLOUD_S3_CFG" > ~/.s3cfg
env:
SECRETS_LEAFCLOUD_S3_CFG: ${{ secrets.LEAFCLOUD_S3_CFG }}
- name: Install s3cmd
run: |
sudo apt-get update
sudo apt-get --yes install s3cmd
- name: Retrieve image name
run: |
TARGET_IMAGE=$(jq --arg version "${{ matrix.build }}" -r '.cluster_image[$version]' "${{ env.IMAGE_PATH }}")
echo "TARGET_IMAGE=${TARGET_IMAGE}" >> "$GITHUB_ENV"
- name: Copy image from pre-release to release bucket
run: s3cmd cp "s3://openhpc-images-prerelease/${TARGET_IMAGE}" s3://openhpc-images