Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
jobs:
ci-image-release:
name: ci-image-release
runs-on: ubuntu-22.04
concurrency: ${{ github.workflow }}-${{ github.ref }}
strategy:
fail-fast: false
matrix:
build:
- RL8
- RL9
steps:
- uses: actions/checkout@v2

- name: Write s3cmd configuration
run: echo "${{ secrets.ARCUS_S3_CFG }}" > ~/.s3cfg

- 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/${{ env.TARGET_IMAGE }} s3://openhpc-images
Loading