Skip to content
Snippets Groups Projects
Commit f27ed342 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add reload-service CI/CD job

parent 66764111
No related branches found
No related tags found
No related merge requests found
Pipeline #2421 failed
...@@ -88,6 +88,23 @@ docker-push: ...@@ -88,6 +88,23 @@ docker-push:
exists: exists:
- Dockerfile - Dockerfile
reload-service:
image: debian:bullseye-slim
stage: release
variables:
SERVICE_NAME: steering
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- ssh $SSH_AURA_RADIO_USER@$SSH_AURA_RADIO_HOST 'cd $DOCKER_COMPOSE; docker compose up -d --no-deps $SERVICE_NAME'
release_job: release_job:
stage: release stage: release
needs: needs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment