Compare commits

..

6 commits

Author SHA1 Message Date
bef4a0aabf
cleanup and remove debug
Some checks failed
continuous-integration/drone/push Build is failing
2023-04-16 01:14:30 -05:00
b86e724a62
test fix 2023-04-16 00:55:31 -05:00
35d419e00a
debug 2023-04-16 00:41:09 -05:00
0eff967947
token 2023-04-16 00:33:48 -05:00
826062d086
see if trimmed down LD_LIBRARY_PATH works 2023-04-16 00:29:14 -05:00
49f49ce293
add debug 2023-04-16 00:27:21 -05:00
3 changed files with 7 additions and 11 deletions

View file

@ -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 }}

View file

@ -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"

View file

@ -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
} }