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