Skip to content

Commit f49193c

Browse files
committed
Image sync CI to use leafcloud S3
1 parent 642d500 commit f49193c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
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/s3-image-sync.yml

Lines changed: 1 addition & 11 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:
@@ -19,11 +19,6 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v2
2121

22-
- name: Write s3cmd configuration
23-
run: |
24-
echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg
25-
shell: bash
26-
2722
- name: Install s3cmd
2823
run: |
2924
sudo apt-get update
@@ -71,11 +66,6 @@ jobs:
7166
echo "${{ secrets[format('{0}_CLOUDS_YAML', env.CI_CLOUD)] }}" > ~/.config/openstack/clouds.yaml
7267
shell: bash
7368

74-
- name: Write s3cmd configuration
75-
run: |
76-
echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg
77-
shell: bash
78-
7969
- name: Install s3cmd and qemu-utils
8070
run: |
8171
sudo apt-get update

0 commit comments

Comments
 (0)