From 7b07258411f5cfd541c2415011701a9b5b228d82 Mon Sep 17 00:00:00 2001 From: plasmagoat Date: Sun, 8 Jun 2025 02:26:50 +0200 Subject: [PATCH] fixed substitution --- .forgejo/workflows/build-image.yml | 22 +++++++++++----------- configuration.nix | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml index d5aad3a..b21f179 100644 --- a/.forgejo/workflows/build-image.yml +++ b/.forgejo/workflows/build-image.yml @@ -60,7 +60,7 @@ jobs: run: | set -e IMAGE="result/vm-image.vma.zst" - REMOTE_NAME="nixos-base-image-${steps.version.outputs.tag}.vma.zst" + REMOTE_NAME="nixos-base-image-${{ steps.version.outputs.tag}}.vma.zst" REMOTE_PATH="/var/lib/vz/template/images/$REMOTE_NAME" echo "Uploading $IMAGE to Proxmox as $REMOTE_NAME" @@ -85,13 +85,13 @@ jobs: # ls -tp nixos-base-image-*.vma.zst | grep -v '/$' | tail -n +6 | xargs -r rm -- # " - # - name: Create Forgejo Release (optional) - # if: ${{ github.ref_type == 'tag' }} - # uses: softprops/action-gh-release@v1 - # with: - # name: "NixOS Base Image ${{ steps.version.outputs.tag }}" - # tag_name: ${{ steps.version.outputs.tag }} - # body: | - # This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`. - # files: | - # result/vm-image.vma.zst + - name: Create Forgejo Release (optional) + if: ${{ github.ref_type == 'tag' }} + uses: softprops/action-gh-release@v1 + with: + name: "NixOS Base Image ${{ steps.version.outputs.tag }}" + tag_name: ${{ steps.version.outputs.tag }} + body: | + This release contains the NixOS base image for Proxmox labeled `${{ steps.version.outputs.tag }}`. + files: | + result/vm-image.vma.zst diff --git a/configuration.nix b/configuration.nix index 09cdf4c..97abe8e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -44,6 +44,7 @@ users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICUP7m8jZJiclZGfSje8CeBYFhX10SrdtjYziuChmj1X plasmagoat@macbook-air" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGlzZWik5bbH6/xjiCpwo1SQSJ/J/Cv7y4ZQ45P68GLB forgejo-runner" + "something" ]; # Default filesystem on