Dateien nach "scripts" hochladen
This commit is contained in:
1 parent
f75645479d
commit
dd3bd93c07
3 files changed
+133
-173
No files matched your search
+1
-2
@@ -3,11 +3,10 @@
|
||||
set -Eeuo pipefail
|
||||
umask 077
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
CACHE_ROOT="${CACHE_ROOT:-/opt/gitea-builder/cache/vuln-builder}"
|
||||
CACHE_ROOT="${CACHE_ROOT:-/vuln-cache/vuln-builder}"
|
||||
export CACHE_ROOT
|
||||
mkdir -p "$CACHE_ROOT" "$CACHE_ROOT/releases"
|
||||
exec 9>"$CACHE_ROOT/.builder.lock"
|
||||
flock -w 600 9 || { echo 'Another builder is running' >&2; exit 1; }
|
||||
python3 "$ROOT/scripts/sync_sources.py"
|
||||
python3 "$ROOT/scripts/build.py" --sources "$CACHE_ROOT/sources" --output "$CACHE_ROOT/releases" "$@"
|
||||
|
||||
Reference in new issue
Block a user