Some checks failed
Build and Push Docker Image - HEC IA Wiki / build-and-push (push) Failing after 1m0s
23 lines
534 B
YAML
23 lines
534 B
YAML
name: Deploy Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy stack
|
|
uses: appleboy/ssh-action@v1
|
|
with:
|
|
host: ${{ secrets.HOST }}
|
|
username: ${{ secrets.USERNAME }}
|
|
key: ${{ secrets.KEY }}
|
|
port: ${{ secrets.PORT }}
|
|
script: cd "/home/${secrets.USERNAME}/docker/wiki-hecia" && git pull && docker compose -f compose.yaml pull && docker compose up -d
|