fix(ci): bypass docker/podman entirely using crane
Some checks failed
Publish docker image / Publish (push) Failing after 2m10s
Some checks failed
Publish docker image / Publish (push) Failing after 2m10s
This commit is contained in:
parent
35a7ac3aa8
commit
203afb3ed4
1 changed files with 6 additions and 8 deletions
|
@ -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}}"
|
|
||||||
|
|
Loading…
Reference in a new issue