Skip to content
Snippets Groups Projects
Commit 89669fa8 authored by Steffen Stricker's avatar Steffen Stricker
Browse files

Update .gitlab-ci.yml file

parent db85a35b
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ build-git: ...@@ -24,7 +24,7 @@ build-git:
- function exec_ssh () { ssh -o StrictHostKeyChecking=no $SSH_USER@$DEPLOYMENT_URL $1; } - function exec_ssh () { ssh -o StrictHostKeyChecking=no $SSH_USER@$DEPLOYMENT_URL $1; }
# Login in Container Registry # Login in Container Registry
- exec_ssh "docker login -u \"${CI_REGISTRY_USER}\" -p \"${CI_REGISTRY_PASSWORD}\" \"${CI_REGISTRY}\"" - exec_ssh "docker login -u \"${CI_REGISTRY_USER}\" -p \"${CI_REGISTRY_PASSWORD}\" \"${CI_REGISTRY}\""
- exec_ssh "if [ -d '$BASE_DIR/$WEBSITE' ]; then cd $BASE_DIR; git remote set-url origin ${CI_REPOSITORY_URL}; git pull; else cd $BASE_DIR; git clone ${CI_REPOSITORY_URL} $WEBSITE; cd $BASE_DIR/$WEBSITE; git checkout ${CI_COMMIT_BRANCH}; git pull; fi;" - exec_ssh "if [ -d '$BASE_DIR/$WEBSITE' ]; then cd $BASE_DIR/$WEBSITE; git remote set-url origin ${CI_REPOSITORY_URL}; git pull; else cd $BASE_DIR; git clone ${CI_REPOSITORY_URL} $URL; cd $BASE_DIR/$WEBSITE; git checkout ${CI_COMMIT_BRANCH}; git pull; fi;"
script: script:
- echo "build complete" - echo "build complete"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment