chore: add release command, clean up leftover Fly.io config #6
Workflow file for this run
This file contains hidden or 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 Demo | |
| on: | |
| push: | |
| branches: ["main", "public_demo"] | |
| jobs: | |
| deploy: | |
| runs-on: self-hosted | |
| environment: demo | |
| steps: | |
| - name: Pull latest code | |
| run: | | |
| set -e | |
| cd /opt/nexuslims-cdcs | |
| echo "=== Pulling latest code (branch: ${{ github.ref_name }}) ===" | |
| git fetch origin | |
| git checkout ${{ github.ref_name }} | |
| git pull origin ${{ github.ref_name }} | |
| - name: Download fixtures (if absent) | |
| run: | | |
| set -e | |
| cd /opt/nexuslims-cdcs/deployment | |
| if [ ! -d "fixtures/demo_data/nx-data" ]; then | |
| ./scripts/manage-demo-fixtures.sh download | |
| else | |
| echo "Fixtures already present, skipping download" | |
| fi | |
| - name: Build and restart stack | |
| run: | | |
| set -e | |
| cd /opt/nexuslims-cdcs/deployment | |
| export COMPOSE_FILE="docker-compose.base.yml:docker-compose.demo.yml" | |
| COMPOSE_BAKE=true docker compose build cdcs | |
| docker compose down | |
| docker compose up -d | |
| echo "=== Deploy complete ===" |