Merge pull request #138 from aviate-labs/main #71
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: Build & Deploy | |
on: | |
push: | |
branches: [release] | |
jobs: | |
deploy: | |
name: Deploy Node Monitor | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH into droplet and run script | |
uses: appleboy/[email protected] | |
with: | |
host: ${{secrets.SSH_HOST}} # IP address of the server you wish to ssh into | |
key: ${{secrets.SSH_KEY}} # Private or public key of the server | |
username: ${{ secrets.SSH_USERNAME }} # User of the server you want to ssh into | |
script: | | |
cd node-monitor-prod | |
git fetch | |
git reset --hard origin/release | |
docker compose down | |
docker image prune -a -f | |
docker compose up --build -d | |
echo 'Node monitor successfuly deployed to digital ocean droplet' |