fix(ci): bypass docker/podman entirely using crane
Some checks failed
Publish docker image / Publish (push) Failing after 2m10s

This commit is contained in:
Ashhhleyyy 2024-02-18 11:49:53 +00:00
parent 35a7ac3aa8
commit 203afb3ed4
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -16,11 +16,9 @@ jobs:
uses: https://github.com/cachix/install-nix-action@v25
- name: Build image
run: "nix --extra-experimental-features 'nix-command,flakes' build .#docker"
- name: Load image
run: "podman load < result"
- name: Retag image
run: "podman image tag aci-backend:latest git.ashhhleyyy.dev/ash/aci:latest && podman image tag aci-backend:latest git.ashhhleyyy.dev/ash/aci:${{github.sha}}"
- name: Log in to registry
run: "podman login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} git.ashhhleyyy.dev"
- name: Push images
run: "podman push git.ashhhleyyy.dev/ash/aci:latest git.ashhhleyyy.dev:${{github.sha}}"
- name: Log into registry
run: "nix run nixpkgs#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}}"