Compare commits
1 Commits
f23d4b5698
...
eaea5c7152
Author | SHA1 | Date | |
---|---|---|---|
eaea5c7152 |
38
.github/workflows/main.yaml
vendored
38
.github/workflows/main.yaml
vendored
@ -7,43 +7,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true"
|
|
||||||
|
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: RouxAntoine/checkout@v3.5.4
|
- 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
|
- uses: actions/setup-java@v4
|
||||||
id: java
|
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
overwrite-settings: false
|
settings-path: './'
|
||||||
|
- run: ./mvnw verify deploy
|
||||||
- name: Add root certificate to java truststore
|
# - run: ./mvnw verify jib:build
|
||||||
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"
|
|
||||||
|
4
.github/workflows/pull-request.yaml
vendored
4
.github/workflows/pull-request.yaml
vendored
@ -6,12 +6,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: RouxAntoine/checkout@v3.5.4
|
- uses: RouxAntoine/checkout@v3.5.4
|
||||||
|
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
|
|
||||||
- run: ./mvnw verify deploy
|
- run: ./mvnw verify deploy
|
||||||
|
@ -1,7 +1 @@
|
|||||||
# Usage documentation
|
# Usage documentation
|
||||||
|
|
||||||
to publish a docker image of this application use
|
|
||||||
|
|
||||||
```shell
|
|
||||||
./mvnw compile jib:build
|
|
||||||
```
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -72,7 +72,7 @@
|
|||||||
<version>${jib-maven-plugin.version}</version>
|
<version>${jib-maven-plugin.version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<to>
|
<to>
|
||||||
<image>container.localdomain/${project.artifactId}</image>
|
<image>container.localdomain:5000/${artifactId}</image>
|
||||||
</to>
|
</to>
|
||||||
<from>
|
<from>
|
||||||
<image>eclipse-temurin:21.0.1_12-jdk</image>
|
<image>eclipse-temurin:21.0.1_12-jdk</image>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<httpHeaders>
|
<httpHeaders>
|
||||||
<property>
|
<property>
|
||||||
<name>Authorization</name>
|
<name>Authorization</name>
|
||||||
<value>token ${env.TOKEN_REGISTRY}</value>
|
<value>token ${env.GITEA_TOKEN}</value>
|
||||||
</property>
|
</property>
|
||||||
</httpHeaders>
|
</httpHeaders>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user