forked from extern/zsync
28 lines
762 B
YAML
28 lines
762 B
YAML
stages:
|
|
- build
|
|
# - deploy
|
|
|
|
build_linux:
|
|
stage: build
|
|
tags:
|
|
- linux-all
|
|
only:
|
|
- tags
|
|
script:
|
|
- ./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/bashclub-zsync_${CI_COMMIT_TAG}_all.deb
|
|
- ssh root@192.168.99.247 aptly-import-packages -v ${CI_COMMIT_TAG:0:3} /tmp/import/bashclub-zsync_${CI_COMMIT_TAG}_all.deb
|
|
#- ssh root@192.168.99.247 rm -rf /tmp/import |