actions: deploy switched to a more used ssh action
All checks were successful
build and publish docker image / deploy / build (push) Successful in 1m59s
All checks were successful
build and publish docker image / deploy / build (push) Successful in 1m59s
This commit is contained in:
parent
d20f118a0c
commit
bddc75024e
17
.github/workflows/build_deploy_dev.yml
vendored
17
.github/workflows/build_deploy_dev.yml
vendored
|
@ -51,14 +51,11 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven
|
${{ runner.os }}-maven
|
||||||
|
|
||||||
- name: Setup SSH
|
- name: executing remote ssh commands using ssh key
|
||||||
uses: https://github.com/LuisEnMarroquin/setup-ssh-action@v2.0.0
|
uses: https://github.com/appleboy/ssh-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
ORIGIN: ${{ secrets.HOST }} # example.com || 8.8.8.8
|
host: ${{ secrets.HOST }}
|
||||||
SSHKEY: ${{ secrets.SSH }} # ----- BEGIN RSA PRIVATE KEY----- ...
|
username: ${{ secrets.USERNAME }}
|
||||||
NAME: dev
|
key: ${{ secrets.KEY }}
|
||||||
PORT: ${{ secrets.PORT }} # 3000
|
port: ${{ secrets.PORT }}
|
||||||
USER: ${{ secrets.USER }} # admin
|
script: cd services/server && docker compose pull && docker compose up -d
|
||||||
# pull and deploy latest images
|
|
||||||
- run: ssh dev "cd services/server && docker compose pull && docker compose up -d";
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- eureka.client.service-url.defaultZone=http://eureka-server:8761/eureka
|
- eureka.client.service-url.defaultZone=http://eureka-server:8761/eureka
|
||||||
- eureka.instance.preferIpAddress=true
|
- eureka.instance.preferIpAddress=true
|
||||||
|
|
||||||
gateway:
|
gateway:
|
||||||
image: git.4o1x5.dev/learningpulse/server/gateway:dev
|
image: git.4o1x5.dev/learningpulse/server/gateway:dev
|
||||||
restart: always
|
restart: always
|
||||||
|
|
Reference in a new issue