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: |
|
||||
${{ 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
|
|
@ -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
|
||||
|
|
Reference in a new issue