Commit 81cc94b2 authored by Arif Ali's avatar Arif Ali
Browse files

Add openssh to ubuntu to transfer files, and apt-utils for kitchen

parent 08106ec7
......@@ -6,8 +6,7 @@
build_deb:
stage: build
script:
- apt-get -y update
- apt-get -y install build-essential devscripts debhelper git
- apt-get -y update && apt-get -y install build-essential devscripts debhelper git
- export VERSION=`git describe --tags --long | awk -F- '{print $1}'`
- export RELEASE=`git describe --tags --long | awk -F- '{print $2}'`
- dch -v $VERSION-$RELEASE -b -D stable "$CI_COMMIT_REF_SLUG"
......@@ -23,6 +22,7 @@ build_deb:
deploy_deb:
stage: deploy
script:
- apt-get -y update && apt-get install openssh-clients
- ssh -o "StrictHostKeyChecking=no" root@mirror.ocf.co.uk "cd /var/www/html/salt/formula ; rm -rf $CI_PROJECT_NAME*.deb"
- scp -o "StrictHostKeyChecking=no" debs/*.deb root@mirror.ocf.co.uk:/var/www/html/salt/formula
<<: *pkg_default_options
......@@ -63,6 +63,7 @@ platforms:
post_create:
- remote: sudo apt-get -y update
- remote: sudo apt-get -y upgrade
- remote: sudo apt-get -y install apt-utils
suites:
- name: carbon
......
Markdown is supported
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