Compare commits
No commits in common. "bef4a0aabfd8611d8fbed1b1f90380d6fc8e2443" and "c8c7270ee03c578bc17f0ed117bda32cfd9f0708" have entirely different histories.
bef4a0aabf
...
c8c7270ee0
3 changed files with 11 additions and 7 deletions
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -9,5 +9,3 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: nix -L build .#nixos-runner
|
- run: nix -L build .#nixos-runner
|
||||||
- run: nix run .#push-container -- result --registry ghcr.io --repository jcollie/nixos-runner
|
- run: nix run .#push-container -- result --registry ghcr.io --repository jcollie/nixos-runner
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
|
@ -156,8 +156,8 @@
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
];
|
];
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"flakes"
|
|
||||||
"nix-command"
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -359,7 +359,7 @@
|
||||||
"/root/.nix-profile/share/man"
|
"/root/.nix-profile/share/man"
|
||||||
"/nix/var/nix/profiles/default/share/man"
|
"/nix/var/nix/profiles/default/share/man"
|
||||||
]}"
|
]}"
|
||||||
"LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [pkgs.glibc pkgs.stdenv.cc.cc.lib]}"
|
"LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath defaultPkgs}"
|
||||||
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
"GIT_SSL_CAINFO=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
"GIT_SSL_CAINFO=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
"NIX_SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
"NIX_SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
|
|
|
@ -48,6 +48,8 @@ def main [
|
||||||
$tags
|
$tags
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print $tags
|
||||||
|
|
||||||
let auth = {username: null, password: null}
|
let auth = {username: null, password: null}
|
||||||
|
|
||||||
let auth = (
|
let auth = (
|
||||||
|
@ -69,6 +71,8 @@ def main [
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
print $auth
|
||||||
|
|
||||||
let registry = (
|
let registry = (
|
||||||
if ($registry | is-empty) {
|
if ($registry | is-empty) {
|
||||||
if not ($env | get -i PLUGIN_REGISTRY | is-empty) {
|
if not ($env | get -i PLUGIN_REGISTRY | is-empty) {
|
||||||
|
@ -107,9 +111,12 @@ def main [
|
||||||
|
|
||||||
let old_image = ($load_result.stdout | str trim | parse "Loaded image: {image}" | get 0.image)
|
let old_image = ($load_result.stdout | str trim | parse "Loaded image: {image}" | get 0.image)
|
||||||
|
|
||||||
|
print $old_image
|
||||||
|
podman images
|
||||||
$tags | each {
|
$tags | each {
|
||||||
|tag|
|
|tag|
|
||||||
let new_image = $"($registry)/($repository):($tag)"
|
let new_image = $"($registry)/($repository):($tag)"
|
||||||
|
print $new_image
|
||||||
let tag_result = (do { podman tag $old_image $new_image } | complete)
|
let tag_result = (do { podman tag $old_image $new_image } | complete)
|
||||||
if $tag_result.exit_code != 0 {
|
if $tag_result.exit_code != 0 {
|
||||||
print $tag_result.stderr
|
print $tag_result.stderr
|
||||||
|
@ -120,8 +127,7 @@ def main [
|
||||||
print $push_result.stderr
|
print $push_result.stderr
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
print $"Pushed $(new_image)"
|
|
||||||
}
|
}
|
||||||
|
podman images
|
||||||
podman logout $registry
|
podman logout $registry
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue