mirror of
http://gitlab.bashclub.org/bashclub/zsync.git
synced 2024-11-21 10:53:07 +01:00
29 lines
722 B
YAML
29 lines
722 B
YAML
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 |