Skip to content

needs build on deploy workflow #2

needs build on deploy workflow

needs build on deploy workflow #2

Workflow file for this run

name: deploy
on:
push:
tags:
- "v*"
jobs:
deploy:
name: Deploy to production
needs: build
runs-on: prod
steps:
-
name: Checkout
uses: actions/checkout@master
-
name: Copy docker-compose.yaml
run: |

Check failure on line 18 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: 18, Col: 12): Unrecognized named-value: 'PROJECT_PATH'. Located at position 1 within expression: PROJECT_PATH .github/workflows/deploy.yaml (Line: 22, Col: 12): Unrecognized named-value: 'PROJECT_PATH'. Located at position 1 within expression: PROJECT_PATH
cp -f ./deploy/docker-compose.yaml ${{ PROJECT_PATH }}/docker-compose.yaml
-
name: Pull changes and restart
run: |
cd ${{ PROJECT_PATH }}
docker-compose down --remove-orphans
docker-compose pull
docker-compose up -d