Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
salt
gitlab-ci-templates
Commits
81cc94b2
Commit
81cc94b2
authored
May 14, 2019
by
Arif Ali
Browse files
Add openssh to ubuntu to transfer files, and apt-utils for kitchen
parent
08106ec7
Changes
2
Hide whitespace changes
Inline
Side-by-side
gitlab-ci-includes/deb_pkg.yml
View file @
81cc94b2
...
...
@@ -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
kitchen/config.yml
View file @
81cc94b2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment