This commit is contained in:
parent
7d3d72821c
commit
2553362795
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,15 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- nix build .#nixos-runner
|
- nix build .#nixos-runner
|
||||||
- nix run .#push-container -- result
|
- nix run .#push-container -- result
|
||||||
|
- podman load --input result | sed -n -e "s/Loaded image:.\\(.*\\)/\\1/p" > loaded-image
|
||||||
|
- cat loaded-image
|
||||||
|
- podman images
|
||||||
|
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
||||||
|
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:latest"
|
||||||
|
- podman images
|
||||||
|
- podman push "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
||||||
|
- podman push "${REGISTRY}/${REPOSITORY}:latest"
|
||||||
|
- podman logout "${REGISTRY}"
|
||||||
settings:
|
settings:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: jcollie/nixos-runner
|
repository: jcollie/nixos-runner
|
||||||
|
|
Loading…
Reference in a new issue