fix(deploy-static-site): remove nix profile install, tools provided by runner image

This commit is contained in:
Christopher Mühl 2026-02-19 00:24:36 +01:00
parent 3f27f6b84f
commit bcca32baae
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -47,24 +47,6 @@ inputs:
runs:
using: composite
steps:
- name: Install tools
shell: bash
run: |
NIXPKGS_ALLOW_UNFREE=1 nix profile install --impure nixpkgs#nomad nixpkgs#awscli2 nixpkgs#skopeo
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
- name: Cache installed tools
if: env.NIX_SIGNING_KEY != ''
shell: bash
run: |
echo "${NIX_SIGNING_KEY}" > /tmp/nix-key
nix store sign -k /tmp/nix-key --recursive "$HOME/.nix-profile"
rm /tmp/nix-key
nix copy --to "file:///tmp/nix-tools-cache" "$HOME/.nix-profile"
aws s3 sync /tmp/nix-tools-cache \
"s3://${{ inputs.s3-bucket }}" \
--endpoint-url "${{ inputs.s3-endpoint }}"
- name: Build site
shell: bash
run: nix build ".#${{ inputs.flake-output }}" --out-link result-site