Skip to content

fix: tests with env vars #4

fix: tests with env vars

fix: tests with env vars #4

name: Deploy Docker Config
on:
push:
paths:
- ".docker/compose.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
truncate -s 0 .env
printf 'NUXT_API_URL=${{ secrets.NUXT_API_URL }}' >> .env
docker compose build
docker compose up -d