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
urgi-is
data-discovery
Commits
b0200b86
Verified
Commit
b0200b86
authored
Apr 07, 2021
by
Raphaël Flores
Browse files
Merge deployment hidden jobs.
GNP-5796
.
parent
9b6aed7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b0200b86
...
...
@@ -241,21 +241,7 @@ build-data-discovery:
.deploy-to-vm-openstack
:
&deploy_to_vm_openstack
tags
:
-
openstack
# Hidden job which serves as template for executed jobs below.
# See https://docs.gitlab.com/ee/ci/yaml/#anchors
retry
:
2
script
:
# SSH initialization
-
eval $(ssh-agent -s)
-
ssh-add <(echo "${SSH_PRIVATE_KEY}")
-
ssh -o StrictHostKeyChecking=no ${SERVER_USER}@${SERVER_IP} 'echo "Successfully connected on $(hostname)"'
# Copy jar to the server
-
scp ./backend/build/libs/${APP_NAME}.jar ${SERVER_USER}@${SERVER_IP}:/tmp/${APP_NAME}-${ENV}.jar
-
ssh ${SERVER_USER}@${SERVER_IP} "sudo mv /tmp/${APP_NAME}-${ENV}.jar /opt/bootapp/${APP_NAME}-${ENV}.jar ; sudo chown -R bootapp:bootapp /opt/bootapp/"
# Restarting service with the updated jar and the according Spring profiles enabled
-
ssh ${SERVER_USER}@${SERVER_IP} "sudo systemctl restart bootapp@${APP_NAME}-${ENV}"
-
eval $(ssh-agent -k)
-
echo "Deploy and index done. Application should be available at http://${SERVER_IP}:${APP_PORT}/${APP_CONTEXT}"
<<
:
*deploy_to_vm_proxmox
.variables-rare-beta-openstack
:
&variables-rare-beta-openstack
variables
:
...
...
@@ -558,7 +544,6 @@ deploy-brc4env-to-staging-openstack:
when
:
manual
needs
:
[
"
build-brc4env"
]
# ALPHA
deploy-brc4env-to-prod-openstack
:
stage
:
deploy-production
tags
:
...
...
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