Publishing a release
Publishing a release means:
- delivering the JARs to an artifact repository;
- publishing the containers to a container registry.
Libraries
The build is configured to deliver libraries to two repositories.
| Repository | Command |
|---|---|
| A Nexus repository | mvn deploy -Pdeploy -Pdeploy-nexus |
| GitHub Packages | mvn deploy -Pdeploy -Pdeploy-github |
Containers
A container registry stores and distributes container images, which Docker, Docker Compose or Kubernetes then pull to start containers.
| Profile | Registry |
|---|---|
-Pdeploy-ghcr | ghcr.io/open-ent/open-ent |
-Pdeploy-nexus-registry | The container registry of the Nexus instance configured in the build |
The name and version of each container come from its pom.xml. A published container is pulled
with:
docker pull ghcr.io/open-ent/open-ent/catalog:1.2.0
To build with a specific version:
mvn install -Pjib -Dquarkus.container-image.tag=1.0.1-dev
Registry credentials
Jib uses the local Docker configuration. Run docker login against the registry before
publishing. The token is stored in $HOME/.docker/config.json and reused by Jib during the Maven
build.
Full release
To publish the containers together with the user interfaces:
mvn install -Pdeploy-ghcr -Pfrontend
Launcher
The launcher needs its image properties on the command line, since the profile does not set all of them:
mvn -Pdeploy-ghcr -Dquarkus.container-image.push=true -Dmaven.test.skip=true \
-Dquarkus.container-image.registry=ghcr.io \
-Dquarkus.container-image.group=open-ent \
-Dquarkus.container-image.name=open-ent/launcher