mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-20 03:50:20 +00:00
add auto deploy
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 3m23s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 3m23s
This commit is contained in:
parent
378c120035
commit
5e1364e083
@ -35,3 +35,10 @@ jobs:
|
|||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
working-directory: .build/prod
|
working-directory: .build/prod
|
||||||
run: docker compose push
|
run: docker compose push
|
||||||
|
|
||||||
|
- name: Deploy production
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
run: |
|
||||||
|
eval "$(ssh-agent -s)"
|
||||||
|
ssh-add - <<< ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
ssh root@10.0.1.5 -t "cd /mnt && docker compose pull portal-api portal-api-nginx && docker compose up -d portal-api portal-api-nginx"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user