zsync/.gitlab-ci.yml

29 lines
722 B
YAML
Raw Normal View History

stages:
2024-02-09 22:49:27 +01:00
- build
2024-02-09 23:47:09 +01:00
- deploy
2024-02-09 22:49:27 +01:00
build_linux:
stage: build
tags:
- linux-all
only:
- tags
script:
2024-02-09 22:55:20 +01:00
- chmod +x ./build-package
2024-02-09 22:49:27 +01:00
- ./build-package ${CI_COMMIT_TAG}
artifacts:
name: "bashclub-zsync_${CI_COMMIT_TAG}_all.deb"
paths:
- "bashclub-zsync_${CI_COMMIT_TAG}_all.deb"
2024-02-09 23:47:09 +01:00
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