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}}"