Skip to content

Commit

Permalink
added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
giannisni committed Aug 24, 2022
1 parent cb61e75 commit ef380a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn clean install
# - uses: mr-smithers-excellent/docker-build-push@v5
# - name: Build & push Docker image
# - uses: mr-smithers-excellent/docker-build-push@v5
# with:
# image: repo/image
# tags: v1, latest
# registry: registry-url.io
# dockerfile: Dockerfile.ci
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
- uses: mr-smithers-excellent/docker-build-push@v5
- name: Build & push Docker image
- uses: mr-smithers-excellent/docker-build-push@v5
with:
image: smartclide2022/cicd
tags: latest
registry: docker.io
dockerfile: Dockerfile.ci
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM openjdk:11
EXPOSE 8080
ADD target/cicd.jar cicd.jar
ENTRYPOINT ["java","-jar","/cicd.jar"]
1 change: 1 addition & 0 deletions initial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<finalName>cicd</finalName>
</build>

</project>

0 comments on commit ef380a3

Please sign in to comment.