This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Description
Description
When using the spring-boot generator like this:
<generator>
<includes>
<include>spring-boot</include>
</includes>
<config>
<spring-boot>
<registry>${docker.registry.host}</registry>
<name>${kubernetes.deploy.project}/%a:%l</name>
</spring-boot>
</config>
</generator>
the generated result always starts up using the default application.yml.
Is it possible to extend the plugin with an option to specify which spring profile is active so we can use this to roll out to different environments (dev, prod, acc)?
Info
We now use our own image which specifies the profile using
<entryPoint>
<exec>
<arg>java</arg>
<arg>-jar</arg>
<arg>-Dspring.profiles.active=prod</arg>
<arg>/opt/${project.artifactId}-${project.version}.jar</arg>
</exec>
</entryPoint>