Skip to content

Commit

Permalink
Build qcow2 on release
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaypf9 committed Nov 19, 2024
1 parent 895af64 commit d697ca0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/packer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches:
- main
release:
types:
- created

env:
PACKER_VERSION: "latest"
Expand Down Expand Up @@ -105,12 +108,13 @@ jobs:
echo "Release keyword not found."
echo "release_found=false" >> $GITHUB_ENV
fi
echo "Push Message=${{ github.event.push.head_commit.message }}"
if [[ "${{ github.event.push.head_commit.message }}" == *"release"* ]]; then
echo "Release keyword found."
- name: Check if release event
id: check_release
run: |
if [[ "${{ github.event_name }}" == "release" ]]; then
echo "release_found=true" >> $GITHUB_ENV
fi
- name: Enable KVM group perms
if: env.release_found == 'true'
Expand Down

0 comments on commit d697ca0

Please sign in to comment.