stages: - build - deploy build_linux: stage: build tags: - linux-all only: - tags script: - chmod +x ./build-package - ./build-package ${CI_COMMIT_TAG} artifacts: 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