jgitver #23
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
@ -21,7 +21,10 @@ jobs:
|
|||||||
java-version: '21'
|
java-version: '21'
|
||||||
|
|
||||||
- name: Build Runner
|
- name: Build Runner
|
||||||
run: ./mvnw --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true
|
run: |
|
||||||
|
./mvnw -B --no-transfer-progress clean validate -Prelease
|
||||||
|
./mvnw -B --no-transfer-progress versions:commit
|
||||||
|
./mvnw -B --no-transfer-progress clean verify -Pnative -Dquarkus.native.remote-container-build=true -Djgitver.skip=true
|
||||||
|
|
||||||
- name: Add coverage to PR
|
- name: Add coverage to PR
|
||||||
id: jacoco
|
id: jacoco
|
||||||
@ -40,3 +43,10 @@ jobs:
|
|||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main'
|
||||||
run: "docker compose up -d"
|
run: "docker compose up -d"
|
||||||
|
|
||||||
|
- name: create tag
|
||||||
|
if: github.ref_name == 'main'
|
||||||
|
run: |
|
||||||
|
version = var=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
||||||
|
git tag ${version} -m "release ${version}"
|
||||||
|
git push origin ${version}
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
<configuration xmlns="http://jgitver.github.io/maven/configuration/1.1.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://jgitver.github.io/maven/configuration/1.1.0 https://jgitver.github.io/maven/configuration/jgitver-configuration-v1_1_0.xsd">
|
|
||||||
<strategy>MAVEN</strategy>
|
|
||||||
<policy>MAX</policy>
|
|
||||||
<autoIncrementPatch>true</autoIncrementPatch>
|
|
||||||
<useCommitDistance>true</useCommitDistance>
|
|
||||||
<useDirty>false</useDirty>
|
|
||||||
<useGitCommitId>true</useGitCommitId>
|
|
||||||
<gitCommitIdLength>8</gitCommitIdLength>
|
|
||||||
<nonQualifierBranches>main</nonQualifierBranches>
|
|
||||||
<useDefaultBranchingPolicy>true</useDefaultBranchingPolicy>
|
|
||||||
</configuration>
|
|
44
pom.xml
44
pom.xml
@ -274,5 +274,49 @@
|
|||||||
<quarkus.native.enabled>true</quarkus.native.enabled>
|
<quarkus.native.enabled>true</quarkus.native.enabled>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>release</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>regex-property</id>
|
||||||
|
<goals>
|
||||||
|
<goal>regex-property</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<name>tag.version</name>
|
||||||
|
<value>${jgitver.calculated_version}</value>
|
||||||
|
<regex>-SNAPSHOT</regex>
|
||||||
|
<replacement></replacement>
|
||||||
|
<failIfNoMatch>true</failIfNoMatch>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>versions-maven-plugin</artifactId>
|
||||||
|
<version>2.18.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>release-version</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>set</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<newVersion>${tag.version}</newVersion>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user