Skip to content

Merge pull request #883 from Jayasankar-kk/ai-alpha-19 #272

Merge pull request #883 from Jayasankar-kk/ai-alpha-19

Merge pull request #883 from Jayasankar-kk/ai-alpha-19 #272

Workflow file for this run

name: Deploy-to-staging
on:
push:
branches: [ version-2 ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
pull-n-deploy:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VACHAN_DO_HOST }}
username: ${{ secrets.VACHAN_DO_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
script: |
cd /home/gitautodeploy/vachan-api
git pull origin version-2
cd docker
docker compose -f docker-compose-staging.yml --profile deployment --env-file prod.env up --force-recreate --build -d