Compare commits
2 commits
b5f9af10f4
...
54a46488f6
Author | SHA1 | Date | |
---|---|---|---|
54a46488f6 | |||
bb7de5dc59 |
2 changed files with 5 additions and 2 deletions
|
@ -19,15 +19,17 @@ steps:
|
||||||
image: docker.io/jcollie/nixos-runner:latest
|
image: docker.io/jcollie/nixos-runner:latest
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
|
- set
|
||||||
|
- echo -n "${PASSWORD}" | podman login --username ${USERNAME} --password-stdin ${REGISTRY}
|
||||||
- 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
|
- podman load --input result | sed -n -e "s/Loaded image:.\\(.*\\)/\\1/p" > loaded-image
|
||||||
- cat loaded-image
|
- cat loaded-image
|
||||||
- podman images
|
- podman images
|
||||||
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:8}"
|
||||||
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:latest"
|
- podman tag "$(<loaded-image)" "${REGISTRY}/${REPOSITORY}:latest"
|
||||||
- podman images
|
- podman images
|
||||||
- podman push "${REGISTRY}/${REPOSITORY}:${GITHUB_RUN_NUMBER}-${GITHUB_SHA:0:8}"
|
- podman push "${REGISTRY}/${REPOSITORY}:${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:8}"
|
||||||
- podman push "${REGISTRY}/${REPOSITORY}:latest"
|
- podman push "${REGISTRY}/${REPOSITORY}:latest"
|
||||||
- podman logout "${REGISTRY}"
|
- podman logout "${REGISTRY}"
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
pkgs.glibc
|
pkgs.glibc
|
||||||
pkgs.gnugrep
|
pkgs.gnugrep
|
||||||
pkgs.gnused
|
pkgs.gnused
|
||||||
|
pkgs.iputils
|
||||||
pkgs.nix
|
pkgs.nix
|
||||||
pkgs.nodejs-16_x
|
pkgs.nodejs-16_x
|
||||||
pkgs.nushell
|
pkgs.nushell
|
||||||
|
|
Loading…
Reference in a new issue