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 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