Skip to content

Commit

Permalink
Merge pull request #42 from boozallen/2-fix-oci-config
Browse files Browse the repository at this point in the history
#2 💚 update OCI configuration to get helm chart publishing
  • Loading branch information
d-ryan-ashcraft authored May 3, 2024
2 parents 23dde27 + 064b721 commit 39252ce
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions extensions/extensions-helm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
<build>
<pluginManagement>
<plugins>
<!--
Especially when configuring OCI, this plugin can be a bit confusing and messy. We will endeavour
to help fix that, but for now be aware that OCI/push makes this more difficult to follow. Recommend
looking at the source directly for push before making any changes:
-->
<plugin>
<groupId>${group.helm.plugin}</groupId>
<artifactId>helm-maven-plugin</artifactId>
Expand All @@ -105,18 +110,38 @@
<goal>dependency-update</goal>
</goals>
</execution>
<!--
dry run doesn't seem necessary for normal ops, but you can add it
by uncommenting this out, if needed:
<execution>
<id>simulates-an-install</id>
<phase>integration-test</phase>
<goals>
<goal>dry-run</goal>
</goals>
</execution>
-->
<execution>
<id>deploy</id>
<phase>deploy</phase>
<goals>
<goal>push</goal>
</goals>
</execution>
</executions>
<configuration>
<skipInit>true</skipInit>
<appVersion>${project.version}</appVersion>
<chartDirectory>${project.basedir}</chartDirectory>
<namespace>default</namespace>
<templateGenerateName>true</templateGenerateName>
<skip>${skip.helm}</skip>
<skipTemplate>false</skipTemplate>
<skipDependencyBuild>true</skipDependencyBuild>
<skipInit>false</skipInit>
<skipTemplate>false</skipTemplate>
<!-- For OCI, we need push versus upload: -->
<skipUpload>true</skipUpload>
<overwriteLocalDependencies>${overwrite.dependencies}</overwriteLocalDependencies>
<overwriteDependencyRepository>${aissemble.helm.repo}</overwriteDependencyRepository>
<overwriteDependencyRepository>oci://${aissemble.helm.repo}</overwriteDependencyRepository>
<overwriteDependencyVersion>${project.version}</overwriteDependencyVersion>
<uploadVerification>true</uploadVerification>
<uploadVerificationTimeout>120</uploadVerificationTimeout>
Expand All @@ -130,10 +155,7 @@
</uploadRepoSnapshot>
<lintStrict>true</lintStrict>
<helmExtraRepos>
<helmRepo>
<name>${aissemble.helm.repo.name}</name>
<url>${aissemble.helm.repo}</url>
</helmRepo>
<!-- No ghcr.io repo here b/c it is oci:// -->
<helmRepo>
<name>bitnami</name>
<url>https://charts.bitnami.com/bitnami</url>
Expand Down

0 comments on commit 39252ce

Please sign in to comment.