Compare commits

..

No commits in common. "6fcb14623e2ef45fdd992c3758a614e33c0af693" and "a5c28ee62bb095281353c88507e79bc6b94a69b7" have entirely different histories.

3 changed files with 4 additions and 3 deletions

View File

@ -6,4 +6,5 @@ pipeline:
repo: chewingbever/pieter
tag: ${CI_COMMIT_TAG}
when:
branch: main
event: tag

4
app.py
View File

@ -4,7 +4,7 @@ from pathlib import Path
from werkzeug.utils import secure_filename
import subprocess
UPLOAD_FOLDER = Path(os.environ['REPO_DIR'])
UPLOAD_FOLDER = Path(os.environ['REPO_DIR']) / "pkgs"
API_KEY = os.environ['API_KEY']
ALLOWED_EXTENSIONS = {'pkg.tar.zst', 'pkg.tar.gz'}
@ -57,7 +57,7 @@ def upload_file():
file.save(path)
# Run repo-add on the file
res = subprocess.run(["repo-add", path.parent / "pieter.db.tar.gz", path])
res = subprocess.run(["repo-add", path.parent.parent / "pieter.db.tar.gz", path])
if res.returncode != 0:
path.unlink()

View File

@ -36,7 +36,7 @@ http {
}
location / {
root /data;
root /data;
}
}
}