ci: expose angieVersion as plain string attr; fix push step
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
Use `nix eval --raw .#angieVersion` instead of trying to read a writeText derivation that was never built. Also call streamLayeredImage output via process-substitution properly.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
# nixpkgs ships angie compiled against `--prefix=/etc/angie` and
|
||||
# `--http-log-path=/var/log/angie/access.log`; the package's `bin/angie`
|
||||
# already knows where to look for its main config (/etc/angie/angie.conf).
|
||||
angie = pkgs.angie;
|
||||
inherit (pkgs) angie;
|
||||
|
||||
# Stock main config: turns on http and includes whatever drop-ins the
|
||||
# chart mounts at /etc/angie/http.d/*.conf — same idiom as the alpine
|
||||
@@ -55,8 +55,13 @@
|
||||
'';
|
||||
config = {
|
||||
Entrypoint = [ "${angie}/bin/angie" ];
|
||||
Cmd = [ "-g" "daemon off;" ];
|
||||
ExposedPorts = { "80/tcp" = { }; };
|
||||
Cmd = [
|
||||
"-g"
|
||||
"daemon off;"
|
||||
];
|
||||
ExposedPorts = {
|
||||
"80/tcp" = { };
|
||||
};
|
||||
WorkingDir = "/etc/angie";
|
||||
};
|
||||
};
|
||||
@@ -64,9 +69,8 @@
|
||||
{
|
||||
packages.${system} = {
|
||||
default = image;
|
||||
# Plain text file containing just the version string — read by CI to
|
||||
# produce the registry tag without re-evaluating the flake.
|
||||
version = pkgs.writeText "angie-version" angie.version;
|
||||
};
|
||||
# Plain string — read by CI via `nix eval --raw .#angieVersion`.
|
||||
angieVersion = angie.version;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user