add deploy
Build and Deploy Docker / build (push) Successful in 28s
Build and Deploy Docker / deploy (push) Failing after 6s

This commit is contained in:
2026-06-30 10:58:17 +02:00
parent b5335c8bba
commit 8491098fae
+16
View File
@@ -30,3 +30,19 @@ jobs:
file: ./service/Dockerfile file: ./service/Dockerfile
push: true push: true
tags: git.rhost.ovh/${{ github.repository }}:latest tags: git.rhost.ovh/${{ github.repository }}:latest
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.2.0
port: ${{ secrets.SERVER_PORT }}
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
cd /home/ryjek/docker/updateip
docker compose pull
docker compose up -d