Verified Commit 25856e93 authored by Roman Ondráček's avatar Roman Ondráček
Browse files

GitLab CI: add package deployment


Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 5d15d3e3
Pipeline #3595 passed with stages
in 33 seconds
......@@ -67,6 +67,25 @@ stages:
- './*.changes'
expire_in: 4 weeks
.deploy-package_devel: &deploy-package_devel
stage: deploy-package
<<: *ssh_template
only:
refs:
- master
script:
- ssh www-deploy@iqrfsdk.org "rm -f /data/nginx/dl/iqrf-gateway-translator/${DIST}/all/devel/*"
- rsync -hrvz --delete -e ssh *.deb *_${ARCH}.changes www-deploy@iqrfsdk.org:/data/nginx/dl/iqrf-gateway-translator/${DIST}/all/devel
.deploy-package_release: &deploy-package_release
stage: deploy-package
<<: *ssh_template
only:
- tags
script:
- ssh www-deploy@iqrfsdk.org "rm -f /data/nginx/dl/iqrf-gateway-translator/${DIST}/all/stable/*.changes"
- rsync -hrvz --delete -e ssh *.deb *_${ARCH}.changes www-deploy@iqrfsdk.org:/data/nginx/dl/iqrf-gateway-translator/${DIST}/all/stable
test:
stage: test
before_script:
......@@ -82,24 +101,54 @@ test:
build-package_devel-buster-amd64:
<<: *debian-buster-amd64-template
<<: *build-package_devel
deploy-package_devel-buster-amd64:
<<: *debian-buster-amd64-template
<<: *deploy-package_devel
needs:
- build-package_devel-buster-amd64
build-package_release-buster-amd64:
<<: *debian-buster-amd64-template
<<: *build-package_release
deploy-package_release-buster-amd64:
<<: *debian-buster-amd64-template
<<: *deploy-package_release
needs:
- build-package_release-buster-amd64
# Ubuntu 18.04 bionic
## amd64
build-package_devel-bionic-amd64:
<<: *ubuntu-bionic-amd64-template
<<: *build-package_devel
deploy-package_devel-bionic-amd64:
<<: *ubuntu-bionic-amd64-template
<<: *deploy-package_devel
needs:
- build-package_devel-bionic-amd64
build-package_release-bionic-amd64:
<<: *ubuntu-bionic-amd64-template
<<: *build-package_release
deploy-package_release-bionic-amd64:
<<: *ubuntu-bionic-amd64-template
<<: *deploy-package_release
needs:
- build-package_release-bionic-amd64
# Ubuntu 20.04 focal
## amd64
build-package_devel-focal-amd64:
<<: *ubuntu-focal-amd64-template
<<: *build-package_devel
deploy-package_devel-focal-amd64:
<<: *ubuntu-focal-amd64-template
<<: *deploy-package_devel
needs:
- build-package_devel-focal-amd64
build-package_release-focal-amd64:
<<: *ubuntu-focal-amd64-template
<<: *build-package_release
deploy-package_release-focal-amd64:
<<: *ubuntu-focal-amd64-template
<<: *deploy-package_release
needs:
- build-package_release-focal-amd64
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment