Skip to content

Commit 3d0dde7

Browse files
bertiethorpeMaxBed4d
authored andcommitted
documentation
1 parent 1866fc8 commit 3d0dde7

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/bin/get-s3-image.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
#####
4+
# This script looks for an image in OpenStack and if not found, downloads from
5+
# S3 bucket, and then uploads to OpenStack
6+
#####
7+
38
set -ex
49

510
image_name=$1

.github/workflows/upload-release-image.yml renamed to .github/workflows/upload-release-image.yml.sample

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# This workflow dispatch is to be used on a downstream ansible-slurm-appliance repository. The workflow takes two inputs:
2+
# image name, and s3 bucket name. The image is searched for in the environment set openstack, and if not found there,
3+
# downloads it from the ARCUS S3 bucket specified. The workflow then uploads the image to the openstack.
4+
#
5+
# To use this workflow in a downstream ansible-slurm-appliance repository simply copy it into .github/workflows
6+
# and give it an appropriate name, e.g.
7+
# cp .github/workflows/upload-s3-image.yml.sample .github/workflows/upload-s3-image.yml
8+
#
9+
# In order for the workflow to access the openstack, credentials in the form of a clouds.yaml file must be provided by a
10+
# secret. This secret should have the name OS_CLOUD_YAML to be found by the workflow.
11+
# Details on the contents of the clouds.yaml file can be found at https://docs.openstack.org/keystone/latest/user/application_credentials.html
112

213
name: Upload release images to client sites from s3
314
on:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,6 @@ Please see the [monitoring-and-logging.README.md](docs/monitoring-and-logging.RE
149149

150150
The `.github` directory contains a set of sample workflows which can be used by downstream site-specific configuration repositories to simplify ongoing maintainence tasks. These include:
151151

152-
- An [upgrade check](.github/workflows/upgrade-check.yml.sample) workflow which automatically checks this upstream stackhpc/ansible-slurm-appliance repo for new releases and proposes a pull request to the downstream site-specific repo when a new release is published.
152+
- An [upgrade check](.github/workflows/upgrade-check.yml.sample) workflow which automatically checks this upstream stackhpc/ansible-slurm-appliance repo for new releases and proposes a pull request to the downstream site-specific repo when a new release is published.
153+
154+
- An [image upload](.github/workflows/upload-s3-image.yml.sample) workflow dispatch which takes an image name, downloads it from ARCUS s3 bucket if available, and uploads to downstream environment openstack.

0 commit comments

Comments
 (0)