mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-04 06:39:48 +01:00
174 lines
5.9 KiB
XML
174 lines
5.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
MIT License
|
|
|
|
Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
|
|
-->
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>sonia.scm.packaging</groupId>
|
|
<artifactId>scm-packaging</artifactId>
|
|
<version>2.1.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>helm</artifactId>
|
|
<packaging>helm</packaging>
|
|
<version>2.1.0-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<helm.version>3.2.1</helm.version>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
<version>4.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>get-git-commit-id</id>
|
|
<goals>
|
|
<goal>revision</goal>
|
|
</goals>
|
|
<phase>validate</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<includeOnlyProperties>
|
|
<includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
|
|
</includeOnlyProperties>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.gmavenplus</groupId>
|
|
<artifactId>gmavenplus-plugin</artifactId>
|
|
<version>1.9.0</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
<artifactId>groovy-all</artifactId>
|
|
<version>3.0.3</version>
|
|
<type>pom</type>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>init-helm-environment</id>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>execute</goal>
|
|
</goals>
|
|
<configuration>
|
|
<scripts>
|
|
<script>${project.basedir}/src/main/build/download.groovy</script>
|
|
<script>${project.basedir}/src/main/build/repository.groovy</script>
|
|
<script>${project.basedir}/../docker/src/main/build/name.groovy</script>
|
|
</scripts>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>add-package-yml</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>execute</goal>
|
|
</goals>
|
|
<configuration>
|
|
<scripts>
|
|
<script>${project.basedir}/src/main/build/packageYaml.groovy</script>
|
|
</scripts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-resources</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${basedir}/target/chart</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/chart</directory>
|
|
<filtering>false</filtering>
|
|
<excludes>
|
|
<exclude>values.yaml</exclude>
|
|
</excludes>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/chart</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>values.yaml</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.kiwigrid</groupId>
|
|
<artifactId>helm-maven-plugin</artifactId>
|
|
<version>5.4</version>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<chartDirectory>${project.basedir}/target/chart</chartDirectory>
|
|
<chartVersion>${docker.tag}</chartVersion>
|
|
<appVersion>${docker.tag}</appVersion>
|
|
<autoDetectLocalHelmBinary>false</autoDetectLocalHelmBinary>
|
|
<helmDownloadUrl>https://get.helm.sh/helm-v${helm.version}-${helm.os}-${helm.arch}.${helm.ext}</helmDownloadUrl>
|
|
<uploadRepoStable>
|
|
<name>${deployment.serverId}</name>
|
|
<url>${helm.repository}</url>
|
|
<type>ARTIFACTORY</type>
|
|
</uploadRepoStable>
|
|
<uploadRepoSnapshot>
|
|
<name>${deployment.serverId}</name>
|
|
<url>${helm.repository}</url>
|
|
<type>ARTIFACTORY</type>
|
|
</uploadRepoSnapshot>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|