Skip to content

Merge branch 'main' of https://github.com/CtrI-Alt-Del/smart-farming #6

Merge branch 'main' of https://github.com/CtrI-Alt-Del/smart-farming

Merge branch 'main' of https://github.com/CtrI-Alt-Del/smart-farming #6

Workflow file for this run

name: Continuous Delivery
on:
push:
branches:
- main
jobs:
CD:
runs-on: ubuntu-latest
steps:
- name: Checkout app
uses: actions/checkout@v4
- name: Deploy app
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_KEY }}
source: "."
target: "/smart-farming"
- name: Run app
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_KEY }}
script: |
cd /smart-farming
docker compose up -d