Merge branch 'main' into dev
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
commit
6fcb14623e
|
@ -6,5 +6,4 @@ pipeline:
|
||||||
repo: chewingbever/pieter
|
repo: chewingbever/pieter
|
||||||
tag: ${CI_COMMIT_TAG}
|
tag: ${CI_COMMIT_TAG}
|
||||||
when:
|
when:
|
||||||
branch: main
|
|
||||||
event: tag
|
event: tag
|
||||||
|
|
4
app.py
4
app.py
|
@ -4,7 +4,7 @@ from pathlib import Path
|
||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
UPLOAD_FOLDER = Path(os.environ['REPO_DIR']) / "pkgs"
|
UPLOAD_FOLDER = Path(os.environ['REPO_DIR'])
|
||||||
API_KEY = os.environ['API_KEY']
|
API_KEY = os.environ['API_KEY']
|
||||||
ALLOWED_EXTENSIONS = {'pkg.tar.zst', 'pkg.tar.gz'}
|
ALLOWED_EXTENSIONS = {'pkg.tar.zst', 'pkg.tar.gz'}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ def upload_file():
|
||||||
file.save(path)
|
file.save(path)
|
||||||
|
|
||||||
# Run repo-add on the file
|
# Run repo-add on the file
|
||||||
res = subprocess.run(["repo-add", path.parent.parent / "pieter.db.tar.gz", path])
|
res = subprocess.run(["repo-add", path.parent / "pieter.db.tar.gz", path])
|
||||||
|
|
||||||
if res.returncode != 0:
|
if res.returncode != 0:
|
||||||
path.unlink()
|
path.unlink()
|
||||||
|
|
|
@ -36,7 +36,7 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /data;
|
root /data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue