Compare commits
No commits in common. "32f164b6ff07d8ad84d5d563e5a145532af3eadf" and "63af040a3880a9f2334fb75636faf65cb89fbfb2" have entirely different histories.
32f164b6ff
...
63af040a38
|
|
@ -1,10 +0,0 @@
|
|||
pipeline:
|
||||
publish:
|
||||
image: plugins/docker
|
||||
secrets: [ docker_username, docker_password ]
|
||||
settings:
|
||||
repo: chewingbever/pieter
|
||||
tag: ${CI_COMMIT_TAG}
|
||||
when:
|
||||
branch: main
|
||||
event: tag
|
||||
4
app.py
4
app.py
|
|
@ -57,13 +57,11 @@ 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.parent / "repo.db.tar.gz", path])
|
||||
|
||||
if res.returncode != 0:
|
||||
path.unlink()
|
||||
|
||||
return {'message': 'Failed to add file to repository.'}, 500
|
||||
|
||||
print(f"Uploaded {file}")
|
||||
|
||||
return {'message': 'Success.'}, 200
|
||||
|
|
|
|||
Reference in New Issue