actions: deploy switched to a more used ssh action
All checks were successful
build and publish docker image / deploy / build (push) Successful in 1m59s

This commit is contained in:
2005 2024-06-01 19:06:48 +02:00
parent d20f118a0c
commit bddc75024e
2 changed files with 8 additions and 10 deletions

View file

@ -51,14 +51,11 @@ jobs:
restore-keys: |
${{ runner.os }}-maven
- name: Setup SSH
uses: https://github.com/LuisEnMarroquin/setup-ssh-action@v2.0.0
- name: executing remote ssh commands using ssh key
uses: https://github.com/appleboy/ssh-action@v1.0.3
with:
ORIGIN: ${{ secrets.HOST }} # example.com || 8.8.8.8
SSHKEY: ${{ secrets.SSH }} # ----- BEGIN RSA PRIVATE KEY----- ...
NAME: dev
PORT: ${{ secrets.PORT }} # 3000
USER: ${{ secrets.USER }} # admin
# pull and deploy latest images
- run: ssh dev "cd services/server && docker compose pull && docker compose up -d";
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: cd services/server && docker compose pull && docker compose up -d

View file

@ -27,6 +27,7 @@ services:
environment:
- eureka.client.service-url.defaultZone=http://eureka-server:8761/eureka
- eureka.instance.preferIpAddress=true
gateway:
image: git.4o1x5.dev/learningpulse/server/gateway:dev
restart: always