more info
This commit is contained in:
parent
791297e760
commit
d5295aa889
2 changed files with 31 additions and 8 deletions
|
|
@ -125,22 +125,44 @@ jobs:
|
|||
- name: Set VERSION from tag or fallback
|
||||
id: version
|
||||
run: |
|
||||
if [ -n "${GITHUB_REF_NAME}" ];
|
||||
echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
|
||||
if [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||
echo "tag_name=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "tag=dev-$(date +%s)" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
echo "tag_name=dev-$(date +%Y%m%d)" >> "$GITHUB_OUTPUT"
|
||||
echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Parse image filename
|
||||
id: image
|
||||
run: |
|
||||
IMAGE=$(basename ${{ steps.artifact.outputs.download-path }}/*.vma.zst)
|
||||
echo "Image filename: $IMAGE"
|
||||
echo "filename=$IMAGE" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# - name: Extract flake metadata
|
||||
# id: meta
|
||||
# run: |
|
||||
# META=$(nix flake metadata --json | jq -r '.locks.nodes.root.inputs | to_entries[] | "* \(.key): \(.value.locked.url) @ \(.value.locked.rev)"')
|
||||
# echo "metadata<<EOF" >> $GITHUB_OUTPUT
|
||||
# echo "$META" >> $GITHUB_OUTPUT
|
||||
# echo "EOF" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Forgejo Release
|
||||
uses: https://code.forgejo.org/sheik/forgejo-release@v2.6.0
|
||||
with:
|
||||
title: "NixOS Base Image ${{ steps.version.outputs.tag }}"
|
||||
prerelease: ${{ github.ref_type != 'tag' }}
|
||||
override: ${{ github.ref_type == 'tag' }}
|
||||
tag: ${{ steps.version.outputs.tag }}
|
||||
tag: ${{ steps.version.outputs.tag_name }}
|
||||
direction: upload
|
||||
release-notes: |
|
||||
This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`.
|
||||
✅ **Base NixOS image uploaded**
|
||||
|
||||
**🧱 Image File:**
|
||||
`/var/lib/vz/dump/${{ steps.image.outputs.filename }}`
|
||||
|
||||
**🔗 Build Logs:**
|
||||
[View Actions Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
|
||||
|
||||
**🔐 Flake Revision:**
|
||||
`${{ github.sha }}`
|
||||
|
||||
Image uploaded as template on proxmox filename: `${{ needs.build.steps.build_image.outputs.image_path_from_build }}`.
|
||||
release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue