Skip to content

fix: workflows "on" statements #5

fix: workflows "on" statements

fix: workflows "on" statements #5

name: Deploy Docker Config
on:
push:
paths:
- ".docker/compose.yaml"
- ".github/workflows/deploy-docker-config.yaml"
branches: [main]
jobs:
deploy-docker-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync docker config with VPS
uses: burnett01/rsync-deployments@7.0.0
with:
switches: -avzr --delete
path: .docker/
remote_path: /var/www/manwha-reader/.docker/
remote_host: ${{ secrets.VPS_HOST }}
remote_port: ${{ secrets.VPS_PORT }}
remote_user: ${{ secrets.VPS_USERNAME }}
remote_key: ${{ secrets.VPS_SSHKEY }}
- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USERNAME }}
port: ${{ secrets.VPS_PORT }}
key: ${{ secrets.VPS_SSHKEY }}
script: |
cd /var/www/manwha-reader/.docker
docker compose build
docker compose up -d