Merge pull request #728 from Joel-Joseph-George/landing-page #170
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --profile deployment --env-file prod.env up --force-recreate --build -d |