feat: Seniors should be able to access volunteer retention #37
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
name: Deploy Volunteer Manager (Staging) | |
on: [ workflow_dispatch, push ] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy the manager to staging | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST_STAGING }} | |
port: ${{ secrets.PORT_STAGING }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
command_timeout: 20m | |
script: | | |
#!/usr/bin/env bash | |
set -e | |
cd ~/volunteer-manager-staging | |
git reset --hard | |
git pull --rebase | |
npm install --force | |
npm run-script test | |
npm run-script build-staging | |
docker system prune -f | |
docker stop volunteer-manager-staging | |
docker rm volunteer-manager-staging | |
docker run -d --name volunteer-manager-staging --restart always -p 3002:3002 volunteer-manager-staging:latest |