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
|
||||
username: 'rodolphe.fontaine@orange.fr'
|
||||
password: ${{ secrets.JF_ACCESS_TOKEN }}
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
- name: Build & publish the project
|
||||
run: mvn compile jib:build -X -DjibSerialize=true
|
||||
push: true
|
||||
tags: rodi26.jfrog.io/spring-petclinic:latest
|
18
pom.xml
18
pom.xml
|
@ -18,7 +18,7 @@
|
|||
<properties>
|
||||
|
||||
<!-- Generic properties -->
|
||||
<java.version>17</java.version>
|
||||
<java.version>21</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<!-- Important for reproducible builds. Update using e.g. ./mvnw versions:set -DnewVersion=... -->
|
||||
|
@ -275,7 +275,21 @@
|
|||
<groupId>org.cyclonedx</groupId>
|
||||
<artifactId>cyclonedx-maven-plugin</artifactId>
|
||||
</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>
|
||||
</build>
|
||||
|
||||
|
|
Loading…
Reference in a new issue