Skip to content

deploy

deploy #4

Workflow file for this run

name: deploy
on:
workflow_run:
workflows: ["build"]
types:
- completed
jobs:
deploy:

Check failure on line 9 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
name: Deploy to production
needs: build
runs-on: prod
steps:
-
name: Checkout
uses: actions/checkout@master
-
name: Copy docker-compose.yaml
run: |
cp -f ./deploy/docker-compose.yaml ${{ secrets.PROJECT_PATH }}/docker-compose.yaml
-
name: Pull changes and restart
run: |
cd ${{ secrets.PROJECT_PATH }}
docker-compose down --remove-orphans
docker-compose pull
docker-compose up -d