rename domain name in the remaining HTML templates and handlers #37
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 the master branch code to an Azure Virtual Machine | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| deployment: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Copy files using SCP | |
| uses: appleboy/scp-action@v1.0.0 | |
| with: | |
| host: ${{ secrets.BIGGR_PROD_HOST }} | |
| username: ${{ secrets.BIGGR_PROD_SSH_USERNAME }} | |
| key: ${{ secrets.BIGGR_PROD_PRIVATE_SSH_KEY }} | |
| source: "." | |
| target: "/data/projects/biggr_models/" | |
| - name: Create the .env file and (re-)start containers over SSH | |
| uses: appleboy/ssh-action@v1.2.0 | |
| with: | |
| host: ${{ secrets.BIGGR_PROD_HOST }} | |
| username: ${{ secrets.BIGGR_PROD_SSH_USERNAME }} | |
| key: ${{ secrets.BIGGR_PROD_PRIVATE_SSH_KEY }} | |
| port: 22 | |
| command_timeout: 30m | |
| script: | | |
| cd /data/projects/biggr_models/ | |
| cp ../cobradb/.env .env | |
| cp ../cobradb/settings.ini settings.ini | |
| docker compose --profile prod down | |
| docker compose --profile prod up -d --build --force-recreate --remove-orphans | |
| docker system prune --all --force |