Skip to content

Add STATUSNOOK monitoring domain and update port in docker-compose #34

Add STATUSNOOK monitoring domain and update port in docker-compose

Add STATUSNOOK monitoring domain and update port in docker-compose #34

name: Cloud Build & Deploy
on:
push:
branches: [main]
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE }}
port: ${{ secrets.SSH_PORT }}
script: |
cd ${{ secrets.FOLDER_PATH }}
git fetch
git checkout origin/main
docker compose build --no-cache
docker compose up -d --build --remove-orphans