-
Notifications
You must be signed in to change notification settings - Fork 1
Build and Release
The COMET-WEB SPA is built using docker and the result is a Docker container ready to be deployed (or pushed to Docker Hub). The Docker file is located in the COMETwebapp project folder.
The CDP4-COMET-WEB SPA is automatically deployed to https://comet-web.cdp4.org/ using a Github action. The following steps are part of this automation:
- upon pushing a Tag to remote that follows the following pattern
web-x.y.z
the action is triggered - a docker container is built and automaticaly pushed to https://hub.docker.com/r/rheagroup/comet-web-community-edition (tagged as
latest
andweb-x.y.z
) - a webhook is installed on the target server that redeploys the container using the latest that from docker-hub
A detailed description can be found here
The Docker command needs to be executed from the commandline in the solution folder. Please note that the docker file is a multi-stage docker file. In the first stage the application is built using the private DevExpress nuget feed. In order to access this nuget feed, it is required to EXPORT the API-KEY to an environment variable.
$ ./solutionfolder# export DEVEXPRESS_NUGET_KEY=<YOUR-API-KEY>
$ ./solutionfolder# DOCKER_BUILDKIT=1 docker build --secret id=DEVEXPRESS_NUGET_KEY,env=DEVEXPRESS_NUGET_KEY -f COMETwebapp/Dockerfile -t rheagroup/comet-web-community-edition:latest -t rheagroup/comet-web-community-edition:<specific-version> .
Push to docker hub
$ ./solutionfolder# docker push rheagroup/comet-web-community-edition:latest
$ ./solutionfolder# docker push rheagroup/comet-web-community-edition:<specific-version>
copyright @ Starion Group S.A.