feat!: support multiple commands by accepting multiline string instead of a single command (#2)
Reviewed-on: https://git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic/pulls/2 BREAKING CHANGE: `command` settings is now not supported, use `script` instead Co-authored-by: Gabor Pihaj <gabor.pihaj@gmail.com> Co-committed-by: Gabor Pihaj <gabor.pihaj@gmail.com>
This commit is contained in:
parent
2ae1bb82d4
commit
95e2ebdb36
1 changed files with 10 additions and 3 deletions
13
flake.nix
13
flake.nix
|
@ -33,9 +33,14 @@
|
|||
|
||||
fi
|
||||
|
||||
export PATH=/bin:/$PATH
|
||||
cat << EOF >> run.sh
|
||||
#!/usr/bin/env bash
|
||||
export PATH=/bin:$PATH
|
||||
|
||||
''${PLUGIN_COMMAND}
|
||||
$PLUGIN_SCRIPT
|
||||
EOF
|
||||
|
||||
sh run.sh
|
||||
'';
|
||||
};
|
||||
nixImage = pkgs.dockerTools.pullImage {
|
||||
|
@ -63,8 +68,10 @@
|
|||
config.Cmd = ["/bin/woodpecker-nix-attic-entrypoint"];
|
||||
diskSize = 2048;
|
||||
};
|
||||
latest = mkImage "latest";
|
||||
in {
|
||||
packages.x86_64-linux.woodpecker-plugin-nix-attic-latest = mkImage "latest";
|
||||
packages.x86_64-linux.default = mkImage null;
|
||||
packages.x86_64-linux.woodpecker-plugin-nix-attic-latest = latest;
|
||||
packages.x86_64-linux.woodpecker-plugin-nix-attic-release = mkImage "0.1.0";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue