Compare commits
6 Commits
468d9660c4
...
1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8cd05f035 | ||
|
|
3e35dfb9ba | ||
| f465e1c101 | |||
|
|
2f4cc2de8b | ||
| b977996689 | |||
| 1544776ecc |
24
.github/workflows/ci.yaml
vendored
24
.github/workflows/ci.yaml
vendored
@@ -20,10 +20,13 @@ jobs:
|
|||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
|
|
||||||
|
- name: new Version
|
||||||
|
if: github.ref_name == 'main'
|
||||||
|
run: |
|
||||||
|
./mvnw -B --no-transfer-progress versions:set -DremoveSnapshot
|
||||||
|
|
||||||
- name: Build Runner
|
- name: Build Runner
|
||||||
run: |
|
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
|
./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
|
||||||
@@ -36,6 +39,10 @@ jobs:
|
|||||||
min-coverage-changed-files: 60
|
min-coverage-changed-files: 60
|
||||||
title: ${{ env.REPO }} Coverage
|
title: ${{ env.REPO }} Coverage
|
||||||
|
|
||||||
|
- id: version
|
||||||
|
name: Version
|
||||||
|
run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ${GITHUB_OUTPUT}
|
||||||
|
|
||||||
- name: Build Container
|
- name: Build Container
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main'
|
||||||
run: docker build -f src/main/docker/Dockerfile.native-micro -t ${{ env.REPO }} .
|
run: docker build -f src/main/docker/Dockerfile.native-micro -t ${{ env.REPO }} .
|
||||||
@@ -47,6 +54,13 @@ jobs:
|
|||||||
- name: create tag
|
- name: create tag
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main'
|
||||||
run: |
|
run: |
|
||||||
version = var=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
git config user.email "ci@git.arindy.de"
|
||||||
git tag ${version} -m "release ${version}"
|
git config user.name "gitea"
|
||||||
git push origin ${version}
|
git add ./pom.xml
|
||||||
|
git commit -m "[no ci] release ${{ steps.version.outputs.VERSION }}"
|
||||||
|
./mvnw -B --no-transfer-progress clean validate -Pnew-snapshot
|
||||||
|
git add ./pom.xml
|
||||||
|
git commit -m "[no ci] prepare new Version"
|
||||||
|
git tag ${{ steps.version.outputs.VERSION }} -m "release ${{ steps.version.outputs.VERSION }}"
|
||||||
|
git push origin main
|
||||||
|
git push origin ${{ steps.version.outputs.VERSION }}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
|
|
||||||
<extension>
|
|
||||||
<groupId>fr.brouillard.oss</groupId>
|
|
||||||
<artifactId>jgitver-maven-plugin</artifactId>
|
|
||||||
<version>1.9.0</version>
|
|
||||||
</extension>
|
|
||||||
</extensions>
|
|
||||||
17
pom.xml
17
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.arindy</groupId>
|
<groupId>de.arindy</groupId>
|
||||||
<artifactId>dice-tower</artifactId>
|
<artifactId>dice-tower</artifactId>
|
||||||
<version>0</version>
|
<version>1.0.2-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<compiler-plugin.version>3.13.0</compiler-plugin.version>
|
<compiler-plugin.version>3.13.0</compiler-plugin.version>
|
||||||
@@ -275,7 +275,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>release</id>
|
<id>new-snapshot</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -284,17 +284,10 @@
|
|||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>regex-property</id>
|
<id>next-version</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>regex-property</goal>
|
<goal>parse-version</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
|
||||||
<name>tag.version</name>
|
|
||||||
<value>${jgitver.calculated_version}</value>
|
|
||||||
<regex>-SNAPSHOT</regex>
|
|
||||||
<replacement></replacement>
|
|
||||||
<failIfNoMatch>true</failIfNoMatch>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -310,7 +303,7 @@
|
|||||||
<goal>set</goal>
|
<goal>set</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<newVersion>${tag.version}</newVersion>
|
<newVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}-SNAPSHOT</newVersion>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|||||||
Reference in New Issue
Block a user