Compare commits
6 commits
c8c7270ee0
...
bef4a0aabf
Author | SHA1 | Date | |
---|---|---|---|
bef4a0aabf | |||
b86e724a62 | |||
35d419e00a | |||
0eff967947 | |||
826062d086 | |||
49f49ce293 |
3 changed files with 7 additions and 11 deletions
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -9,3 +9,5 @@ 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 = [
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
"flakes"
|
||||||
|
"nix-command"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 defaultPkgs}"
|
"LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [pkgs.glibc pkgs.stdenv.cc.cc.lib]}"
|
||||||
"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,8 +48,6 @@ def main [
|
||||||
$tags
|
$tags
|
||||||
}
|
}
|
||||||
|
|
||||||
print $tags
|
|
||||||
|
|
||||||
let auth = {username: null, password: null}
|
let auth = {username: null, password: null}
|
||||||
|
|
||||||
let auth = (
|
let auth = (
|
||||||
|
@ -71,8 +69,6 @@ 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) {
|
||||||
|
@ -111,12 +107,9 @@ 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
|
||||||
|
@ -127,7 +120,8 @@ 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