Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
infra
spot
Commits
1dfce431
Commit
1dfce431
authored
Jan 28, 2020
by
Nicolas Gelot
Browse files
Fix prod deployement job
parent
f3de9cc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1dfce431
...
...
@@ -72,7 +72,7 @@ test:unit:
stage
:
deploy
before_script
:
-
pip install docker-compose
-
apk add openssh-client
-
apk add openssh-client
docker
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
mkdir -p ~/.ssh
...
...
@@ -114,6 +114,8 @@ deploy:spot.cloud.global:
COMPOSE_PROJECT_NAME
:
my-spot
SPOT_DOCKER_TAG
:
${CI_COMMIT_REF_SLUG}
SPOT_NGINX_DOCKER_TAG
:
${CI_COMMIT_REF_SLUG}
SPOT_FILTRON_DOCKER_TAG
:
${CI_COMMIT_REF_SLUG}
SPOT_MORTY_DOCKER_TAG
:
${CI_COMMIT_REF_SLUG}
SSH_PRIVATE_KEY
:
${SSH_PRIVATE_KEY_PROD}
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
...
...
Write
Preview
Supports
Markdown
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