Compare commits

..

5 commits

Author SHA1 Message Date
6fcb14623e
Merge branch 'main' into dev
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-01-08 21:49:30 +01:00
608e888fe7
Fixed routing issue
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2021-12-31 14:04:17 +01:00
80bd4cd1ff
Merge branch 'dev'
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2021-12-31 12:42:47 +01:00
057048cbec
Removed ci thingy
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2021-12-31 11:35:46 +01:00
32f164b6ff
Merge branch 'dev'
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2021-12-31 11:33:55 +01:00
3 changed files with 3 additions and 4 deletions

View file

@ -6,5 +6,4 @@ 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']) / "pkgs"
UPLOAD_FOLDER = Path(os.environ['REPO_DIR'])
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.parent / "pieter.db.tar.gz", path])
res = subprocess.run(["repo-add", path.parent / "pieter.db.tar.gz", path])
if res.returncode != 0:
path.unlink()