mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
docker push
This commit is contained in:
parent
0f07e0059a
commit
7b21bc0bc8
2 changed files with 20 additions and 9 deletions
11
.github/workflows/docker-build.yml
vendored
11
.github/workflows/docker-build.yml
vendored
|
@ -19,11 +19,8 @@
|
||||||
registry: rodi26.jfrog.io
|
registry: rodi26.jfrog.io
|
||||||
username: 'rodolphe.fontaine@orange.fr'
|
username: 'rodolphe.fontaine@orange.fr'
|
||||||
password: ${{ secrets.JF_ACCESS_TOKEN }}
|
password: ${{ secrets.JF_ACCESS_TOKEN }}
|
||||||
- name: Set up JDK 17
|
- name: Build and push
|
||||||
uses: actions/setup-java@v3
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
push: true
|
||||||
distribution: 'temurin'
|
tags: rodi26.jfrog.io/spring-petclinic:latest
|
||||||
cache: maven
|
|
||||||
- name: Build & publish the project
|
|
||||||
run: mvn compile jib:build -X -DjibSerialize=true
|
|
18
pom.xml
18
pom.xml
|
@ -18,7 +18,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
|
|
||||||
<!-- Generic properties -->
|
<!-- Generic properties -->
|
||||||
<java.version>17</java.version>
|
<java.version>21</java.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
<!-- Important for reproducible builds. Update using e.g. ./mvnw versions:set -DnewVersion=... -->
|
<!-- Important for reproducible builds. Update using e.g. ./mvnw versions:set -DnewVersion=... -->
|
||||||
|
@ -275,7 +275,21 @@
|
||||||
<groupId>org.cyclonedx</groupId>
|
<groupId>org.cyclonedx</groupId>
|
||||||
<artifactId>cyclonedx-maven-plugin</artifactId>
|
<artifactId>cyclonedx-maven-plugin</artifactId>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.google.cloud.tools</groupId>
|
||||||
|
<artifactId>jib-maven-plugin</artifactId>
|
||||||
|
<version>3.4.3</version>
|
||||||
|
<configuration>
|
||||||
|
<!-- openjdk:11.0.5-jre -->
|
||||||
|
<from>
|
||||||
|
<image>openjdk:11.0.5-jre</image>
|
||||||
|
</from>
|
||||||
|
<to>
|
||||||
|
<image>docker.io/${docker.image.prefix}/${project.artifactId}</image>
|
||||||
|
<credHelper>pass</credHelper>
|
||||||
|
</to>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue