add scheduler for monitors and placeholder for functionalities #5
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: sandbox-deploy-backend | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'backend/**' | |
workflow_dispatch: | |
concurrency: | |
group: deploy-backend | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: self-hosted | |
environment: | |
name: sandbox | |
url: https://watchtower.finanssure.com | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Push Environment variables | |
run: | | |
rm .env | |
echo "${{ secrets.ENV_FILE }}" > .env | |
- name: Build Service | |
run: docker compose build backend | |
- name: Start Service | |
run: docker compose -p project-watchtower up -d backend | |