Deployment to development server https://dev.bis.brontosaurus.cz
Make a commit to https://github.com/hnuti-brontosaurus/bis which includes #deploy
. It works with every branch, including feature branches. When the app builds and tests pass, it gets deployed to development server
So, e.g. you can update its frontend submodule, and make a commit with message chore: update frontend #deploy
. In any case, please use commit messages consistent with current backend commit style.
When commit in https://github.com/hnuti-brontosaurus/bis is tagged with tag v*.*.*
, a production build gets created. Then an administrator has to confirm the deployment.
Currently, we have a development deployment which gets built on every commit/merge to main.
You could also make a production deployment which would get build on every merge to e.g. production branch. To do this, copy and edit workflow deploy-dev.yml accordingly. You'll also need to set up the environment variables and secrets for the new environment:
URL
- where the app will live (must be domain name withouthttps://
and without trailing slash)API
- base url for api, especially useful when on different domain; it should be set up to allow CORS (optional)CORS_PROXY
- proxy to fix CORS issues with images (optional)
DEPLOY_GH_PAGES_SSH_KEY
- Private key for pushing to the target repo. The target repo itself has to have the public key addedSENTRY_DSN
- Sentry setup