File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2929 cache : maven
3030 - name : Build with Maven
3131 run : mvn clean install
32+ - name : Build & Push Docker image
33+ uses : mr-smithers-excellent/docker-build-push@v5
34+ with :
35+ image : sabarishdocker1991/springboot-githubaction-flow.jar
36+ tags : latest
37+ registry : docker.io
38+ dockerfile : Dockerfile
39+ username : ${{ secrets.DOCKER_USERNAME }}
40+ password : ${{ secrets.DOCKER_PASSWORD }}
Original file line number Diff line number Diff line change 1+ FROM openjdk:17-jdk-alpine
2+ EXPOSE 8092
3+ COPY target/springboot-githubaction-flow.jar springboot-githubaction-flow.jar
4+ ENTRYPOINT ["java" , "-jar" , "springboot-githubaction-flow.jar" ]
Original file line number Diff line number Diff line change 4949 <artifactId >spring-boot-maven-plugin</artifactId >
5050 </plugin >
5151 </plugins >
52+ <finalName >springboot-githubaction-flow</finalName >
5253 </build >
5354
5455</project >
You can’t perform that action at this time.
0 commit comments