cd: after building deploy to server pink
Some checks failed
build and publish docker image / deploy / build (push) Failing after 18s

This commit is contained in:
2005 2024-06-01 18:47:05 +02:00
parent ac4171f888
commit 4e2284f149

View file

@ -50,3 +50,15 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: Setup SSH
uses: https://github.comLuisEnMarroquin/setup-ssh-action@v2.0.0
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";