Skip to content

🚚 cd: add deploy workflow #1

🚚 cd: add deploy workflow

🚚 cd: add deploy workflow #1

Workflow file for this run

name: Continous Delivery
on:
push:
branches:
- main
jobs:
CD:
runs_on: ubuntu-latest

Check failure on line 10 in .github/workflows/cd.yaml

View workflow run for this annotation

GitHub Actions / Continous Delivery

Invalid workflow file

The workflow is not valid. .github/workflows/cd.yaml (Line: 10, Col: 5): Unexpected value 'runs_on' .github/workflows/cd.yaml (Line: 10, Col: 5): Required property is missing: runs-on
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