mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 04:21:08 +00:00
Set Docker image creation timestamp to latest git commit (#134)
This commit is contained in:
committed by
GitHub
parent
65150fd14b
commit
638356299d
26
pom.xml
26
pom.xml
@@ -94,6 +94,11 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:https://github.com/openmaptiles/planetiler-openmaptiles.git</connection>
|
||||
<url>https://github.com/openmaptiles/planetiler-openmaptiles</url>
|
||||
</scm>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@@ -201,6 +206,25 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Make latest git commit timestamp available to jib -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>create</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<doCheck>false</doCheck>
|
||||
<doUpdate>false</doUpdate>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- Create a runnable container -->
|
||||
<plugin>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
@@ -228,6 +252,8 @@
|
||||
</org.opencontainers.image.source>
|
||||
</labels>
|
||||
<mainClass>${mainClass}</mainClass>
|
||||
<creationTime>${maven.build.timestamp}</creationTime>
|
||||
<filesModificationTime>${maven.build.timestamp}</filesModificationTime>
|
||||
</container>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
Reference in New Issue
Block a user