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:
Gabor Pihaj 2023-09-30 18:15:22 +00:00 committed by Gabor Pihaj
parent 0b5b538077
commit 4ad3c86c7a
No known key found for this signature in database
GPG key ID: 7BCF5D144C6C06E3
2 changed files with 5 additions and 3 deletions

View file

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

View file

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