File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 9
9
env :
10
10
S3_BUCKET : openhpc-images-prerelease
11
11
IMAGE_PATH : environments/.stackhpc/tofu/cluster_image.auto.tfvars.json
12
+ RUNNER_IMAGE_DIR : /mnt/images
12
13
13
14
permissions :
14
15
contents : read
@@ -97,20 +98,22 @@ jobs:
97
98
run : |
98
99
. venv/bin/activate
99
100
df -h
100
- openstack image save --file "/mnt/${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
101
+ sudo mkdir ${{ env.RUNNER_IMAGE_DIR }}
102
+ sudo chmod ugo=rwX ${{ env.RUNNER_IMAGE_DIR }}
103
+ openstack image save --file "${{ env.RUNNER_IMAGE_DIR }}/${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
101
104
df -h
102
105
shell : bash
103
106
104
107
- name : Convert image to QCOW2
105
108
run : |
106
109
. venv/bin/activate
107
- qemu-img convert -f raw -O qcow2 -c "/mnt /${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
110
+ qemu-img convert -f raw -O qcow2 -c "${{ env.RUNNER_IMAGE_DIR }} /${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
108
111
shell : bash
109
112
110
113
- name : Upload Image to S3
111
114
run : |
112
115
echo "Uploading Image: ${{ env.TARGET_IMAGE }} to S3..."
113
- s3cmd --multipart-chunk-size-mb=150 put "/mnt /${{ env.TARGET_IMAGE }}" s3://${{ env.S3_BUCKET }}
116
+ s3cmd --multipart-chunk-size-mb=150 put "${{ env.RUNNER_IMAGE_DIR }} /${{ env.TARGET_IMAGE }}" s3://${{ env.S3_BUCKET }}
114
117
shell : bash
115
118
116
119
image_sync :
You can’t perform that action at this time.
0 commit comments