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
|
||||
- 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}}"
|
||||
|
|
Loading…
Reference in a new issue