Skip to content

Commit

Permalink
add metadata to qcow2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
artivis committed Oct 3, 2024
1 parent af2d29b commit 5549ac7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ubuntu-core-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
with:
name: turtlebot3c-ubuntu-image
path: turtlebot3c.img
- name: Upload metadata artifact
uses: actions/upload-artifact@v4
with:
name: turtlebot3c-metadata
path: metadata.tar.gz
qcow2-convertion:
runs-on: ubuntu-latest
needs: ubuntu-image
Expand Down Expand Up @@ -81,15 +86,18 @@ jobs:
with:
name: turtlebot3c-ubuntu-qcow2-image
path: .
- name: Download TurtleBot3c metadata
uses: actions/download-artifact@v4
with:
name: turtlebot3c-metadata
path: .
# The image must be compressed.
# GH release max file size is 2GB
# and the uncompressed image is 3.5GB.
- name: Compress the Ubuntu image
run: |
tar czf turtlebot3c.img.tar.gz turtlebot3c.img
run: tar czf turtlebot3c.img.tar.gz turtlebot3c.img
- name: Compress the Ubuntu qcow2 image
run: |
tar czf turtlebot3c.qcow2.tar.gz turtlebot3c.qcow2
run: tar czf turtlebot3c.qcow2.tar.gz turtlebot3c.qcow2 metadata.tar.gz
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 5549ac7

Please # to comment.