From b6691214aac318d2ddf873298893cfedca6cc421 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sun, 18 Feb 2024 11:58:14 +0000 Subject: [PATCH] fix(ci): nix moment --- .forgejo/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index a6604dc..c62f5de 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -17,8 +17,8 @@ jobs: - name: Build image run: "nix --extra-experimental-features 'nix-command,flakes' build .#docker" - name: Log into registry - run: "nix run nixpkgs#crane -- auth login git.ashhhleyyy.dev -u ${{github.actor}} -p ${{secrets.GITHUB_TOKEN}}" + run: "nix shell nixpkgs#crane --command crane auth login git.ashhhleyyy.dev -u ${{github.actor}} -p ${{secrets.GITHUB_TOKEN}}" - name: Push image (latest) - run: "nix run nixpkgs#crane -- push result git.ashhhleyyy.dev/ash/aci:latest" - - nam: Push image - run: "nix run nixpkgs#crane -- push result git.ashhhleyyy.dev/ash/aci:${{github.sha}}" + run: "nix shell nixpkgs#crane --command crane push result git.ashhhleyyy.dev/ash/aci:latest" + - name: Push image + run: "nix shell nixpkgs#crane --command crane push result git.ashhhleyyy.dev/ash/aci:${{github.sha}}"