Updated www #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Front end deployment is not dockerised insted it directly copies build folder into var/www/ | |
#Same file is used for deploying all schools and any number of domains | |
name: Deploy to dev server school-app | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- | |
name: Deploy Stack | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST_NAME_DEV }} | |
username: ${{ secrets.USERNAME_DEV }} | |
key: ${{ secrets.SSH_KEY_DEV }} | |
port: ${{ secrets.PORT_DEV }} | |
script: | | |
cd ${{ secrets.TARGET_DIR_DEV }} | |
./deploy.sh | |
- | |
name: Notify on Slack channel | |
uses: iRoachie/[email protected] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
with: | |
status: ${{ job.status }} | |
if: ${{ always() }} |