fix drone build
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jeffrey C. Ollie 2023-08-17 12:46:46 -05:00
parent 7d3d72821c
commit 2553362795
Signed by: jeff
GPG key ID: 6F86035A6D97044E

View file

@ -21,6 +21,15 @@ steps:
commands:
- nix build .#nixos-runner
- 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:
registry: docker.io
repository: jcollie/nixos-runner