fix(ci): for some reason crane doesn't support compressed tar archives
Some checks failed
Publish docker image / Publish (push) Failing after 2m22s

This commit is contained in:
Ashhhleyyy 2024-02-18 12:12:56 +00:00
parent b6691214aa
commit 89619e002b
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -18,7 +18,9 @@ jobs:
run: "nix --extra-experimental-features 'nix-command,flakes' build .#docker" run: "nix --extra-experimental-features 'nix-command,flakes' build .#docker"
- name: Log into registry - name: Log into registry
run: "nix shell nixpkgs#crane --command 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: Decompress tar.gz
run: "gunzip -c result > /tmp/aci.tar"
- name: Push image (latest) - name: Push image (latest)
run: "nix shell nixpkgs#crane --command crane push result git.ashhhleyyy.dev/ash/aci:latest" run: "nix shell nixpkgs#crane --command crane push /tmp/aci.tar git.ashhhleyyy.dev/ash/aci:latest"
- name: Push image - name: Push image
run: "nix shell nixpkgs#crane --command crane push result git.ashhhleyyy.dev/ash/aci:${{github.sha}}" run: "nix shell nixpkgs#crane --command crane push /tmp/aci.tar git.ashhhleyyy.dev/ash/aci:${{github.sha}}"