file reference
This commit is contained in:
parent
793da9d0ce
commit
c1a600363a
1 changed files with 12 additions and 12 deletions
|
|
@ -88,24 +88,13 @@ jobs:
|
|||
echo "tag=dev-$(date +%s)" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- 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' }}
|
||||
tag: ${{ steps.version.outputs.tag }}
|
||||
direction: upload
|
||||
release-notes: |
|
||||
This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`.
|
||||
release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support"
|
||||
|
||||
- name: Upload image to Proxmox and manage templates
|
||||
run: |
|
||||
set -e
|
||||
ls
|
||||
FOLDER="${{ steps.artifact.outputs.download-path }}"
|
||||
IMAGE_PATH=$(find "$FOLDER" -maxdepth 1 -type f -name '*.vma.zst' | head -n 1)
|
||||
IMAGE=$(basename "$FULL_PATH")
|
||||
IMAGE=$(basename "$IMAGE_PATH")
|
||||
|
||||
REMOTE_NAME="nixos-base-image-${{ steps.version.outputs.tag}}.vma.zst"
|
||||
REMOTE_PATH="/var/lib/vz/dump/$REMOTE_NAME"
|
||||
|
|
@ -124,3 +113,14 @@ jobs:
|
|||
qm clone $TEMPLATE_VMID $LATEST_TEMPLATE_VMID --name nixos-base-latest
|
||||
qm template $TEMPLATE_VMID
|
||||
"
|
||||
|
||||
- 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' }}
|
||||
tag: ${{ steps.version.outputs.tag }}
|
||||
direction: upload
|
||||
release-notes: |
|
||||
This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`.
|
||||
release-dir: "${{ steps.artifact.outputs.download-path }}/nix-support"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue