Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
data-lakes
data
Level_0
00001_LexploreMeteostation
Commits
cebe8614
Commit
cebe8614
authored
Oct 03, 2019
by
James Runnalls
Browse files
Update .gitlab-ci.yml
parent
92910c26
Pipeline
#7163
failed with stage
in 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
cebe8614
...
...
@@ -5,6 +5,7 @@ variables:
GIT_SSL_NO_VERIFY
:
"
true"
GIT_SUBMODULE_STRATEGY
:
recursive
GIT_LFS_SKIP_SMUDGE
:
1
IMAGE_COMMIT
:
92910c2
# Need to be updated when image_build is run. Should be the first 7 digits of the commit ID from the image_build
stages
:
-
build
...
...
@@ -19,4 +20,23 @@ image_build:
-
docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7
tags
:
-
image-build
\ No newline at end of file
-
image-build
only
:
changes
:
-
Dockerfile
-
requirements.txt
scripts
:
stage
:
build
image
:
$CI_REGISTRY_IMAGE:$IMAGE_COMMIT
before_script
:
-
apt-get update -qq
-
apt-get install -qq git
# Setup SSH deploy keys
-
'
which
ssh-agent
||
(
apt-get
install
-qq
openssh-client
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
script
:
-
centos@148.187.97.230
\ No newline at end of file
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