From 2aa38b56a5a08ffc200a173938b04ac031e6f215 Mon Sep 17 00:00:00 2001 From: "thorsten.spille" Date: Fri, 9 Feb 2024 23:47:09 +0100 Subject: [PATCH] Add deploy stage --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a406d95..66dfbeb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - build + - deploy build_linux: stage: build @@ -14,3 +15,15 @@ build_linux: name: "bashclub-zsync_${CI_COMMIT_TAG}_all.deb" paths: - "bashclub-zsync_${CI_COMMIT_TAG}_all.deb" + +deploy_linux: + stage: deploy + tags: + - linux-all + only: + - tags + script: + - ssh root@192.168.99.247 mkdir -p /tmp/import + - scp "bashclub-zsync_${CI_COMMIT_TAG}_all.deb" root@192.168.99.247:/tmp/import/ + - ssh root@192.168.99.247 import-package /tmp/import/bashclub-zsync_${CI_COMMIT_TAG}_all.deb + - ssh root@192.168.99.247 rm -rf /tmp/import \ No newline at end of file