From 13f37be9c270be40faa458ef61a51fe37b0877a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Guti=C3=A9rrez=20de=20Quevedo=20P=C3=A9?= =?UTF-8?q?rez?= Date: Fri, 21 Nov 2025 19:18:46 +0100 Subject: [PATCH] Add Drone CI configuration --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a49cbcc --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +kind: pipeline +type: docker +name: default + +steps: + # Test stage + - name: test + image: python:3-bookworm + commands: + - pip install --no-cache-dir -r requirements.txt + - pip install --no-cache-dir -e . + - python -m unittest discover cvs_proxy + + # Docker build and push stage + - name: docker-build-push + image: plugins/docker + settings: + registry: docker.gutierrezdequevedo.com + repo: docker.gutierrezdequevedo.com/ps/cvs-proxy + tags: + - latest + - ${DRONE_COMMIT_SHA:0:7} + dockerfile: Dockerfile + context: . + when: + status: + - success + depends_on: + - test + +trigger: + branch: + - "*" + event: + - push \ No newline at end of file