The Angular app is build within a custom docker container to ensure it is reproducible and optimized with caching.
Builds are triggered through GitHub Actions CI (see /.github/workflows).
The deployable server (nginx) image is published to Docker Hub for every official (tagged) build.
You can simply create a new git tag and the CI setup will build and publish a docker image for that version.
Run the following commands from the root folder to build, run and kill the application on your local machine:
docker build -f build/Dockerfile -t aam/digital:latest .
docker run -p=80:80 --name aam-digital aam/digital:latest
docker stop aam-digital
We use semantic-release to automatically create new versions.
- Commits on the
masterbranch are analyzed and a pre-release version is automatically tagged. - To create a stable release, a core team member manually triggers the release GitHub Action (
create-release.ymlworkflow dispatch). This creates a regular (non-prerelease) version frommaster.