From a3398add26d1f3aee7d1e61d50d5d694957adc9b Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Wed, 25 Mar 2026 14:49:56 +0100 Subject: [PATCH] add ci cd --- .drone.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b33dae1 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,25 @@ +kind: pipeline +type: docker +name: swarm-deploy + +steps: + # 1. Build and push Next.js tvone Docker image + - name: build + image: plugins/docker + settings: + registry: registry.petermaquiran.xyz + repo: registry.petermaquiran.xyz/tvone + tags: + - latest + dockerfile: Dockerfile + context: . + + # 2. Trigger service update in Docker Swarm + - name: update-service + image: curlimages/curl:latest + commands: + - > + curl -X POST https://docker-socket.petermaquiran.xyz/update-service + -H "Authorization: Bearer 123" + -H "Content-Type: application/json" + -d "{\"service\":\"tvone_tvone\",\"image\":\"registry.petermaquiran.xyz/tvone:latest\"}"