Compare commits

..

1 Commits

Author SHA1 Message Date
eaea5c7152
feature: publish jar to the maven artifact registry on gitea
Some checks failed
Test workflow / build (pull_request) Failing after 30s
2024-08-23 23:29:46 +02:00
5 changed files with 9 additions and 43 deletions

View File

@ -7,43 +7,15 @@ 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@v3.5.4
- name: Retrieve root ca certificate
id: get-ca-cert
uses: RouxAntoine/get-ca-cert@v1.0.0
- uses: actions/setup-java@v4
id: java
with:
distribution: 'temurin'
java-version: '21'
overwrite-settings: false
- name: Add root certificate to java truststore
uses: RouxAntoine/add-ca-truststore@v1.1.0
id: add-ca-to-truststore
with:
alias-name: antoine-roux.tk
ca-cert: "${{ steps.get-ca-cert.outputs.ca-cert }}"
store-path: "${{ steps.java.outputs.path }}/lib/security/cacerts"
- 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 }}
- uses: RouxAntoine/auto-changie@v1.0.1
- name: Push changelog
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "${{ vars.SKIP_CI_PREFIX }} Push updated changelog"
settings-path: './'
- run: ./mvnw verify deploy
# - run: ./mvnw verify jib:build

View File

@ -6,12 +6,12 @@ on:
jobs:
build:
runs-on: runner
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: RouxAntoine/checkout@v3.5.4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- run: ./mvnw verify deploy

View File

@ -1,7 +1 @@
# Usage documentation
to publish a docker image of this application use
```shell
./mvnw compile jib:build
```

View File

@ -72,7 +72,7 @@
<version>${jib-maven-plugin.version}</version>
<configuration>
<to>
<image>container.localdomain/${project.artifactId}</image>
<image>container.localdomain:5000/${artifactId}</image>
</to>
<from>
<image>eclipse-temurin:21.0.1_12-jdk</image>

View File

@ -8,7 +8,7 @@
<httpHeaders>
<property>
<name>Authorization</name>
<value>token ${env.TOKEN_REGISTRY}</value>
<value>token ${env.GITEA_TOKEN}</value>
</property>
</httpHeaders>
</configuration>