Compare commits
No commits in common. "54a46488f6d2650d308720aa3e435744f030d51b" and "b5f9af10f43a2da5085201d57ffc47739b9a7706" have entirely different histories.
54a46488f6
...
b5f9af10f4
2 changed files with 2 additions and 5 deletions
|
@ -19,17 +19,15 @@ steps:
|
|||
image: docker.io/jcollie/nixos-runner:latest
|
||||
pull: always
|
||||
commands:
|
||||
- set
|
||||
- echo -n "${PASSWORD}" | podman login --username ${USERNAME} --password-stdin ${REGISTRY}
|
||||
- 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}:${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:8}"
|
||||
- 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}:${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:8}"
|
||||
- podman push "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
||||
- podman push "${REGISTRY}/${REPOSITORY}:latest"
|
||||
- podman logout "${REGISTRY}"
|
||||
settings:
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
pkgs.glibc
|
||||
pkgs.gnugrep
|
||||
pkgs.gnused
|
||||
pkgs.iputils
|
||||
pkgs.nix
|
||||
pkgs.nodejs-16_x
|
||||
pkgs.nushell
|
||||
|
|
Loading…
Reference in a new issue