1
0
forked from extern/zsync

Add deploy stage

This commit is contained in:
thorsten.spille 2024-02-09 23:47:09 +01:00
parent d14e220b2a
commit 2aa38b56a5

View File

@ -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