Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docker
factorio
Commits
6e89b439
Commit
6e89b439
authored
Mar 06, 2019
by
Leo Leung
Browse files
Updated pipeline to trigger ssh via environment variables
parent
2169a3cc
Pipeline
#204
passed with stages
in 1 minute and 50 seconds
Changes
1
Pipelines
15
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6e89b439
...
...
@@ -16,7 +16,7 @@ docker build:
-
echo "Building factorio server version $VERSION"
-
docker info
-
cd
0.17
-
docker build -t $IMAGE_TAG:latest -t $IMAGE_TAG:$VERSION --build-arg VERSION
--no-cache
.
-
docker build -t $IMAGE_TAG:latest -t $IMAGE_TAG:$VERSION --build-arg VERSION .
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker push $IMAGE_TAG:latest
-
docker push $IMAGE_TAG:$VERSION
...
...
@@ -31,5 +31,7 @@ update running image:
-
chmod 600 /keys
-
mkdir ~/.ssh
-
ssh-keyscan $SSH_SERVER >> ~/.ssh/known_hosts
-
ssh -i /keys remote@$SSH_SERVER docker-compose -f /root/docker/running/factorio/docker-compose.yml pull
-
ssh -i /keys remote@$SSH_SERVER docker-compose -f /root/docker/running/factorio/docker-compose.yml up -d
-
ssh -i /keys remote@$SSH_SERVER docker-compose -f $PROJECT_PATH/docker-compose.yml images
-
ssh -i /keys remote@$SSH_SERVER docker-compose -f $PROJECT_PATH/docker-compose.yml pull
-
ssh -i /keys remote@$SSH_SERVER docker-compose -f $PROJECT_PATH/docker-compose.yml up -d
-
ssh -i /keys remote@$SSH_SERVER docker-compose -f $PROJECT_PATH/docker-compose.yml images
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