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

Update .gitlab-ci.yml file

parent 58eccdab
Branches
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ variables: &global-variables
SSH_PRIVATE_KEY: $SSH_PRIVATE_KEY
BRANCH : "main"
.build: &build
build-git:
stage: build
allow_failure: false
before_script:
......@@ -25,6 +25,8 @@ variables: &global-variables
# Login in Container 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/$WEBSITE; 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;"
script:
- echo "build complete"
deploy_rights-engine:
stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment