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:
|
||||
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
|
||||
|
4
.github/workflows/pull-request.yaml
vendored
4
.github/workflows/pull-request.yaml
vendored
@ -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
|
||||
|
@ -1,7 +1 @@
|
||||
# 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>
|
||||
<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>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<httpHeaders>
|
||||
<property>
|
||||
<name>Authorization</name>
|
||||
<value>token ${env.TOKEN_REGISTRY}</value>
|
||||
<value>token ${env.GITEA_TOKEN}</value>
|
||||
</property>
|
||||
</httpHeaders>
|
||||
</configuration>
|
||||
|
Loading…
x
Reference in New Issue
Block a user