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
f503f009
Verified
Commit
f503f009
authored
Apr 16, 2021
by
Raphaël Flores
Browse files
Restart config-server before any deployment.
Workaround of bad git configuration served upon time.
parent
604b3313
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f503f009
...
...
@@ -220,6 +220,29 @@ build-data-discovery:
APP_NAME
:
${DATADISCOVERY_APP_NAME}
<<
:
*build_app
# Merge the contents of the 'build_app' alias
.restart-config-server
:
&restart_config_server
stage
:
build
script
:
-
eval $(ssh-agent -s)
-
ssh-add <(echo "${SSH_PRIVATE_KEY}")
-
ssh -o StrictHostKeyChecking=no ${SERVER_USER}@${SERVER_IP} 'echo "Successfully connected on $(hostname)"'
-
ssh ${SERVER_USER}@${SERVER_IP} "sudo systemctl restart bootapp@config-server"
-
eval $(ssh-agent -k)
allow_failure
:
true
restart-config-server-proxmox
:
variables
:
SERVER_IP
:
${SERVER_IP_PROXMOX}
SERVER_USER
:
${SERVER_USER_PROXMOX}
<<
:
*restart_config_server
restart-config-server-openstack
:
tags
:
-
openstack
variables
:
SERVER_IP
:
${SERVER_IP_OPENSTACK_DEV}
SERVER_USER
:
${SERVER_USER_OPENSTACK}
<<
:
*restart_config_server
.deploy-to-vm-proxmox
:
&deploy_to_vm_proxmox
# Hidden job which serves as template for executed jobs below.
...
...
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