Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ecanuto committed Mar 13, 2024
1 parent 1bd23f7 commit 822428a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ jobs:
- name: Install libguestfs
run: sudo apt-get install -y libguestfs-tools

# - name: Rebuild image
# run: ./customize.sh ${{ env.SOURCE_IMGFILE }} ${{ matrix.variant }}
- name: Rebuild image
run: |
sudo virt-customize -a "${{ env.SOURCE_IMGFILE }}" \
--install "${{ env.IMAGE_PACKAGES }}" \
--run-command "apt-get clean"
- name: Compress image artifact
run: sudo virt-sparsify ${{ env.SOURCE_IMGFILE }} --compress ${{ env.TARGET_IMGFILE }}

- name: Upload custom image to a GitHub Release
run: gh release upload "${{ env.GITHUB_RELEASE }}" ${{ env.TARGET_IMGFILE }} --clobber

- run: echo "### Finished! :rocket:" >> $GITHUB_STEP_SUMMARY
- name: Summary
run: echo "### Finished! :rocket:" >> $GITHUB_STEP_SUMMARY
12 changes: 4 additions & 8 deletions settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ fi
declare -A PACKAGES
PACKAGES=(
[qemu]=qemu-guest-agent
[locales]=qemu-guest-agent,locales-all
[extras]=qemu-guest-agent,locales-all,htop
[x_locales]=qemu-guest-agent,locales-all
[x_extras]=qemu-guest-agent,locales-all,htop
[locales]=locales-all
[extras]=htop
)

if [[ "$1" != "" && -v "PACKAGES[$1]" ]]; then
Expand All @@ -37,12 +39,6 @@ else
IMAGE_PACKAGES="qemu-guest-agent"
fi



### TO REMOVE
IMAGE_PACKAGES="htop"
###

# Export variables to github workflow
if [[ -f "$GITHUB_ENV" ]]; then
cat >> "$GITHUB_ENV" <<-EOF
Expand Down

0 comments on commit 822428a

Please sign in to comment.