fix: create the runner script outside of the workspace (#9)
Reviewed-on: https://git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic/pulls/9 Co-authored-by: Gabor Pihaj <gabor.pihaj@gmail.com> Co-committed-by: Gabor Pihaj <gabor.pihaj@gmail.com>
This commit is contained in:
parent
0b5b538077
commit
4ad3c86c7a
2 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,9 @@ pkgs.writeShellApplication {
|
|||
|
||||
fi
|
||||
|
||||
cat << EOF >> run.sh
|
||||
SCRIPT_DIR=$(mktemp -d)
|
||||
|
||||
cat << EOF > "$SCRIPT_DIR"/run.sh
|
||||
#!/usr/bin/env bash
|
||||
export PATH=/bin:$PATH
|
||||
|
||||
|
@ -28,6 +30,6 @@ pkgs.writeShellApplication {
|
|||
$PLUGIN_SCRIPT
|
||||
EOF
|
||||
|
||||
sh run.sh
|
||||
sh "$SCRIPT_DIR"/run.sh
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
in {
|
||||
packages.x86_64-linux.default = mkImage null;
|
||||
packages.x86_64-linux.woodpecker-plugin-nix-attic-latest = mkImage "latest";
|
||||
packages.x86_64-linux.woodpecker-plugin-nix-attic-release = mkImage "0.1.0";
|
||||
packages.x86_64-linux.woodpecker-plugin-nix-attic-release = mkImage "0.1.1";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue