Skip to content

Commit

Permalink
Tag successful builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lunkwill42 committed Dec 18, 2024
1 parent 407c5c1 commit 653cf5b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,17 @@ jobs:
packer build bullseye.json
- name: Make note of NAV package version installed
id: version
run: |
grep "Unpacking nav" "$PACKER_LOG_PATH" | awk -F '[()]' '{print $2}' > navappliance/version.txt
echo "nav_version=$(cat navappliance/version.txt)" >> $GITHUB_OUTPUT
- name: Create annotated tag
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git tag --force -a "v${{ steps.version.outputs.nav_version }}" -m "Successfully built with Debian package version ${{ steps.version.outputs.nav_version }}"
git push origin "v${{ steps.version.outputs.nav_version }}"
- name: Upload version artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 653cf5b

Please sign in to comment.