From 054e9edb1c3244c95c7d8282313c1ed6e404df76 Mon Sep 17 00:00:00 2001 From: Joris Bertomeu Date: Thu, 26 Sep 2024 17:19:26 +0200 Subject: [PATCH] fix woodpecker file --- .woodpecker.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 8b464f3..243c9b4 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -33,4 +33,17 @@ steps: username: from_secret: docker_registry_username password: - from_secret: docker_registry_password \ No newline at end of file + from_secret: docker_registry_password + deploy: + image: appleboy/drone-ssh + settings: + host: 192.168.1.222 + username: + from_secret: ssh_deploy_username + password: + from_secret: ssh_deploy_password + port: 22 + script: + - docker pull ${REPO}:${CI_COMMIT_SHA} + - docker rm -f crawlflix-front || true + - docker run -d --name crawlflix-front --restart always -p 2480:80 ${REPO}:${CI_COMMIT_SHA} \ No newline at end of file