diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 514a303..2f237e4 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -7,13 +7,29 @@ on:
jobs:
build:
+ if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true"
+
runs-on: runner
- container:
- image: catthehacker/ubuntu:act-latest
steps:
- - uses: RouxAntoine/checkout@v4.1.8
- - uses: actions/setup-java@v4
+ - name: Checkout repository
+ uses: https://antoine-roux.tk/projects/actions/checkout@v3.5.4
+
+ - name: Setup java
+ uses: https://antoine-roux.tk/projects/actions/setup-java@v1.1.0
+
+ - name: Deploy container artifact
+ run: ./mvnw compile jib:build
+
+ - name: Deploy maven jar artifact
+ run: ./mvnw deploy
+ env:
+ MAVEN_ARGS: "-s ${{ gitea.workspace }}/settings.xml"
+ TOKEN_REGISTRY: ${{ secrets.TOKEN_REGISTRY }}
+
+ - name: Auto generate changelog
+ uses: https://antoine-roux.tk/projects/actions/auto-changie@v1.0.1
+
+ - name: Push changelog
+ uses: stefanzweifel/git-auto-commit-action@v5
with:
- distribution: 'temurin'
- java-version: '21'
- - run: ./mvnw verify jib:build
+ commit_message: "${{ vars.SKIP_CI_PREFIX }} Push updated changelog"
diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml
index cce8c24..1f02be5 100644
--- a/.github/workflows/pull-request.yaml
+++ b/.github/workflows/pull-request.yaml
@@ -6,12 +6,12 @@ on:
jobs:
build:
runs-on: runner
- container:
- image: catthehacker/ubuntu:act-latest
steps:
- - uses: RouxAntoine/checkout@v4.1.8
- - uses: actions/setup-java@v4
- with:
- distribution: 'temurin'
- java-version: '21'
- - run: ./mvnw verify
+ - name: Checkout repository
+ uses: https://antoine-roux.tk/projects/actions/checkout@v3.5.4
+
+ - name: Setup java
+ uses: https://antoine-roux.tk/projects/actions/setup-java@v1.1.0
+
+ - name: Run test suite
+ run: ./mvnw verify
diff --git a/docs/README.md b/docs/README.md
index 67b3ed8..eca959d 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1 +1,13 @@
# Usage documentation
+
+to publish a docker image of this application use
+
+```shell
+./mvnw compile jib:build
+```
+
+to publish maven jar of this application use
+
+```shell
+./mvnw deploy
+```
diff --git a/pom.xml b/pom.xml
index 89246ea..29fc713 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
${jib-maven-plugin.version}
- container.localdomain:5000/${artifactId}
+ container.localdomain/${project.artifactId}
eclipse-temurin:21.0.1_12-jdk
@@ -126,7 +126,16 @@
maven-failsafe-plugin
-
+
+
+ gitea
+ https://antoine-roux.tk/projects/api/packages/java-template/maven
+
+
+ gitea
+ https://antoine-roux.tk/projects/api/packages/java-template/maven
+
+
diff --git a/settings.xml b/settings.xml
new file mode 100644
index 0000000..6a94642
--- /dev/null
+++ b/settings.xml
@@ -0,0 +1,17 @@
+
+
+
+ gitea
+
+
+
+ Authorization
+ token ${env.TOKEN_REGISTRY}
+
+
+
+
+
+