Skip to content

Commit b7bd7a9

Browse files
authored
Upload CI images to Leafcloud S3 for image syncing (#752)
* Image sync CI to use leafcloud S3 * Use leafcloud s3 config * Update release image workflows and upgrades.md bucket url
1 parent 2b562a8 commit b7bd7a9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ -n "$image_exists" ]; then
1717
else
1818
echo "Image $image_name not found in OpenStack. Getting it from S3."
1919

20-
wget https://object.arcus.openstack.hpc.cam.ac.uk/swift/v1/AUTH_3a06571936a0424bb40bc5c672c4ccb1/$bucket_name/$image_name --progress=dot:giga
20+
wget https://leafcloud.store/swift/v1/AUTH_f39848421b2747148400ad8eeae8d536/$bucket_name/$image_name --progress=dot:giga
2121

2222
echo "Uploading image $image_name to OpenStack..."
2323
openstack image create --file $image_name --disk-format qcow2 $image_name --progress

.github/workflows/release-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v2
2222

2323
- name: Write s3cmd configuration
24-
run: echo "${{ secrets.ARCUS_S3_CFG }}" > ~/.s3cfg
24+
run: echo "${{ secrets.LEAFCLOUD_S3_CFG }}" > ~/.s3cfg
2525

2626
- name: Install s3cmd
2727
run: |

.github/workflows/s3-image-sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Upload CI-tested images to Arcus S3 and sync clouds
1+
name: Upload CI-tested images to Leafcloud S3 and sync clouds
22
on:
33
workflow_dispatch:
44
push:
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Write s3cmd configuration
2323
run: |
24-
echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg
24+
echo "${{ secrets['LEAFCLOUD_S3_CFG'] }}" > ~/.s3cfg
2525
shell: bash
2626

2727
- name: Install s3cmd
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Write s3cmd configuration
7575
run: |
76-
echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg
76+
echo "${{ secrets['LEAFCLOUD_S3_CFG'] }}" > ~/.s3cfg
7777
shell: bash
7878

7979
- name: Install s3cmd and qemu-utils

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
inputs:
2020
image_name:
2121
type: string
22-
description: Image name from: (https://object.arcus.openstack.hpc.cam.ac.uk/swift/v1/AUTH_3a06571936a0424bb40bc5c672c4ccb1/{BUCKET_NAME})
22+
description: Image name from: (https://leafcloud.store/swift/v1/AUTH_f39848421b2747148400ad8eeae8d536/{BUCKET_NAME})
2323
required: true
2424
bucket_name:
2525
type: choice

docs/upgrades.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ All other commands should be run on the Ansible deploy host.
6666
1. Identify image(s) from the relevant [Slurm appliance release](https://github.com/stackhpc/ansible-slurm-appliance/releases), and download
6767
using the link on the release plus the image name, e.g. for an image `openhpc-RL9-250708-1547-1494192e`:
6868

69-
wget https://object.arcus.openstack.hpc.cam.ac.uk/swift/v1/AUTH_3a06571936a0424bb40bc5c672c4ccb1/openhpc-images/openhpc-RL9-250708-1547-1494192e
69+
wget https://leafcloud.store/swift/v1/AUTH_f39848421b2747148400ad8eeae8d536/openhpc-images/openhpc-RL9-250708-1547-1494192e
7070

7171
Note that some releases may not include new images. In this case use the image from the latest previous release with new images.
7272

0 commit comments

Comments
 (0)