Skip to content

moogoo78 is push to main branch, go deploy production server πŸš€ #91

moogoo78 is push to main branch, go deploy production server πŸš€

moogoo78 is push to main branch, go deploy production server πŸš€ #91

Workflow file for this run

name: test CameraTrap GitHub Actions
run-name: ${{ github.actor }} is push to main branch, go deploy production server πŸš€
on:
push:
branches: [ main ]
jobs:
deploy:
name: Deploy to AWS EC2
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
cd naturedb
git pull origin main
#docker-compose -f compose.yml -f compose.prod.yml down && docker-compose -f compose.yml -f compose.prod.yml up --build -d
sudo docker compose -f compose.yml -f compose.prod.yml restart