Compare commits

..

1 Commits

5 changed files with 43 additions and 9 deletions

View File

@ -7,15 +7,43 @@ 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'
settings-path: './'
- run: ./mvnw verify deploy
# - run: ./mvnw verify jib:build
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"

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 +1,7 @@
# 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:5000/${artifactId}</image>
<image>container.localdomain/${project.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.GITEA_TOKEN}</value>
<value>token ${env.TOKEN_REGISTRY}</value>
</property>
</httpHeaders>
</configuration>