Skip to content

Commit a70d4b6

Browse files
committed
convert image to qcow2 during sync workflow
1 parent df91dda commit a70d4b6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ jobs:
7575
echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg
7676
shell: bash
7777

78-
- name: Install s3cmd
78+
- name: Install s3cmd and qemu-utils
7979
run: |
80-
sudo apt-get --yes install s3cmd
80+
sudo apt-get --yes install s3cmd qemu-utils
8181
8282
- name: Retrieve image name
8383
run: |
@@ -88,7 +88,13 @@ jobs:
8888
- name: Download image to runner
8989
run: |
9090
. venv/bin/activate
91-
openstack image save --file ${{ env.TARGET_IMAGE }} ${{ env.TARGET_IMAGE }}
91+
openstack image save --file "${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
92+
shell: bash
93+
94+
- name: Convert image to QCOW2
95+
run: |
96+
. venv/bin/activate
97+
qemu-img convert -f raw -O qcow2 "${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
9298
shell: bash
9399

94100
- name: Upload Image to S3

0 commit comments

Comments
 (0)