fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jeffrey C. Ollie 2023-04-15 23:51:46 -05:00
parent c8d1b23d71
commit c8c7270ee0
Signed by: jeff
GPG key ID: 6F86035A6D97044E
3 changed files with 16 additions and 32 deletions

View file

@ -6,11 +6,6 @@ jobs:
runs-on: ubuntu-latest
container: docker.io/jcollie/nixos-runner:latest
steps:
- run: ldd /__e/node16/bin/node
- run: echo "ld-library-path=${LD_LIBRARY_PATH}" >> $GITHUB_OUTPUT
id: ld-library-path
- uses: actions/checkout@v3
env:
LD_LIBRARY_PATH: ${{ steps.ld-library-path.outputs.ld-library-path }}
- run: nix -L build .#nixos-runner
- run: nix run .#push-container -- result --registry ghcr.io --repository jcollie/nixos-runner

View file

@ -378,21 +378,10 @@
};
};
apps = {
push-container =
let
script = pkgs.writeTextFile {
name = "push-container";
text = lib.concatStringsSep "\n" [
"#!${pkgs.nushell}/bin/nu"
(builtins.readFile ./push-container.nu)
];
executable = true;
};
in
{
type = "app";
program = "${script}";
};
push-container = {
type = "app";
program = "${self.packages.${system}.push-container}/bin/push-container";
};
};
}
)

View file

@ -24,24 +24,24 @@ def main [
$tags
}
let tags = if (
(not $no_drone_tag)
and
(not ($env | get -i DRONE_BUILD_NUMBER | is-empty))
and
(not ($env | get -i DRONE_COMMIT_SHA | is-empty))
) {
$tags | append $"($env.DRONE_BUILD_NUMBER)-($env.DRONE_COMMIT_SHA | str substring 0..8)"
} else {
$tags
}
let tags = if (
(not $no_github_tag)
and
(not ($env | get -i GITHUB_RUN_NUMBER | is-empty))
and
(not ($env | get -i GITHUB_SHA | is-empty))
) {
$tags | append $"($env.GITHUB_RUN_NUMBER)-($env.GITHUB_SHA | str substring 0..8)"
} else {
$tags
}
let tags = if (
(not $no_drone_tag)
and
(not ($env | get -i DRONE_BUILD_NUMBER | is-empty))
and
(not ($env | get -i DRONE_COMMIT_SHA | is-empty))
) {
$tags | append $"($env.DRONE_BUILD_NUMBER)-($env.DRONE_COMMIT_SHA | str substring 0..8)"
} else {