Migrate the Jenkins pipeline to Gitlab CI
This commit is contained in:
@@ -11,9 +11,33 @@ services:
|
||||
- docker:19.03.1-dind
|
||||
|
||||
stages:
|
||||
- build_deb
|
||||
- build_docker
|
||||
- notification
|
||||
|
||||
deb:
|
||||
image: eu.gcr.io/vnc-development/docker-vnc-deb-builder:latest
|
||||
stage: build_deb
|
||||
script:
|
||||
- yarn cache clean
|
||||
- yarn install
|
||||
- echo 'Packaging deb'
|
||||
- ls -la
|
||||
- git fetch --tags
|
||||
- makechangelog.uxf > debian/changelog && cat debian/changelog
|
||||
- sed -n 1p debian/changelog | grep -oP '\(.*?\)' > version.txt
|
||||
- echo '####################################################'
|
||||
- cat version.txt
|
||||
- echo '####################################################'
|
||||
- rm config/vnc-hybrid-authenticator.js
|
||||
- cp -P conf.template/vnc-hybridauth2.js config/vnc-hybrid-authenticator.js
|
||||
- (cd debian; debuild --check-dirname-level 0 --no-tgz-check --no-lintian -us -uc)
|
||||
- ls -la ../
|
||||
- scp ../*.deb repo@newpackages.vnc.biz:/srv/repo/apt/incoming/
|
||||
- ssh repo@newpackages.vnc.biz /srv/repo/bin/import-new-packages.sh
|
||||
only:
|
||||
- master
|
||||
|
||||
dev_deploy:
|
||||
before_script:
|
||||
- base64 -d $SA_Development | docker login -u _json_key --password-stdin https://eu.gcr.io
|
||||
|
||||
Reference in New Issue
Block a user