Skip to content

Instantly share code, notes, and snippets.

@j-tim
Last active October 29, 2020 12:50
Show Gist options
  • Save j-tim/a5747a55a0fafbc2a6b8d8b752d688e5 to your computer and use it in GitHub Desktop.
Save j-tim/a5747a55a0fafbc2a6b8d8b752d688e5 to your computer and use it in GitHub Desktop.
Build snippet from a pom.xml to configure OCI images using the spring-boot-maven-plugin.
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<name>yourcontainerregistry.azurecr.io/${project.artifactId}</name>
</image>
<layers>
<enabled>true</enabled>
<includeLayerTools>true</includeLayerTools>
</layers>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment