I am new to cicd. I have a spring boot application with five properties files, application.properties, application-dev.properties, application-test.properties application-prod.properties and application-cert.properties in my GitLab repo. For my local I used to enter vm arguments to pick a specific properties file. Now for my CICD I set up the .gitlab-ci.yml file but it always pics only application.properties file. I wanted it to take a minimal user action(ex a play button or just enter a short variable) to decide the properties file. Could you plz suggest a flexible solution?
Asked
Active
Viewed 211 times
1
-
`-Dspring.profiles.active=dev` duplicate? https://stackoverflow.com/questions/38520638/how-to-set-spring-profile-from-system-variable – Yuqiu G. Mar 20 '21 at 10:47
-
How/where can I set SPRING_PROFILES_ACTIVE ? – SamA Mar 22 '21 at 17:53