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