From c3bbda0e85cf22c6bd2cb6cf52e9a5e7c800c111 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Fri, 31 Dec 2021 11:20:03 +0100 Subject: [PATCH 1/3] Changed name of repo file --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 789b8fa..749cc13 100644 --- a/app.py +++ b/app.py @@ -57,7 +57,7 @@ def upload_file(): file.save(path) # Run repo-add on the file - res = subprocess.run(["repo-add", path.parent.parent / "repo.db.tar.gz", path]) + res = subprocess.run(["repo-add", path.parent.parent / "pieter.db.tar.gz", path]) if res.returncode != 0: path.unlink() From 74fed465466ca825cddbdae1d226832e9f10314d Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Fri, 31 Dec 2021 11:30:31 +0100 Subject: [PATCH 2/3] Added ci stuff --- .woodpecker.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..176c77d --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,10 @@ +pipeline: + publish: + image: plugins/docker + secrets: [ docker_username, docker_password ] + settings: + repo: chewingbever/pieter + tag: ${CI_COMMIT_TAG} + when: + branch: main + event: tag From 8df79d68ff2e37a41e2df02d91810c8fda81a932 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Fri, 31 Dec 2021 11:31:09 +0100 Subject: [PATCH 3/3] Added "log" --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 749cc13..60c40f9 100644 --- a/app.py +++ b/app.py @@ -64,4 +64,6 @@ def upload_file(): return {'message': 'Failed to add file to repository.'}, 500 + print(f"Uploaded {file}") + return {'message': 'Success.'}, 200