mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-06 14:49:32 +02:00
add docker latest tag for releases
This commit is contained in:
@@ -207,7 +207,6 @@
|
||||
<configuration>
|
||||
<repository>${docker.repository}</repository>
|
||||
<useMavenSettingsForAuth>true</useMavenSettingsForAuth>
|
||||
<tag>${docker.tag}</tag>
|
||||
<contextDirectory>target/build</contextDirectory>
|
||||
</configuration>
|
||||
<executions>
|
||||
@@ -217,6 +216,20 @@
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<tag>${docker.tag}</tag>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>build-latest</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<tag>latest</tag>
|
||||
<skip>${docker.skipLatest}</skip>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>push</id>
|
||||
@@ -224,6 +237,20 @@
|
||||
<goals>
|
||||
<goal>push</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<tag>${docker.tag}</tag>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>push-latest</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>push</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<tag>latest</tag>
|
||||
<skip>${docker.skipLatest}</skip>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
def repository = "docker.io/scmmanager/scm-manager"
|
||||
def version = project.version
|
||||
def skipLatest = "false"
|
||||
|
||||
if (version.contains("SNAPSHOT")) {
|
||||
repository = "docker.io/cloudogu/scm-manager"
|
||||
@@ -36,7 +37,9 @@ if (version.contains("SNAPSHOT")) {
|
||||
}
|
||||
|
||||
version = version.replace("SNAPSHOT", snapshotVersion)
|
||||
skipLatest = "true"
|
||||
}
|
||||
|
||||
project.properties.setProperty("docker.repository", repository)
|
||||
project.properties.setProperty("docker.tag", version)
|
||||
project.properties.setProperty("docker.skipLatest", skipLatest)
|
||||
|
||||
Reference in New Issue
Block a user