Skip to content

Commit

Permalink
Adding github actions support-9
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay-20 committed May 20, 2024
1 parent aefe67e commit f0dadcc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
- if: ${{github.ref == 'refs/heads/main' }}
name: Build and Publish Docker Image
run: |
./mvnw clean package jib:dockerBuild -DskipTests
./mvnw clean package spring-boot:build-image -DskipTests
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push ${{ secrets.DOCKER_USERNAME }}/bookmarker-api
44 changes: 22 additions & 22 deletions bookmarker-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,28 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<from>
<image>eclipse-temurin:17-jre-focal</image>
</from>
<to>
<image>chinmayk/bookmarker-api-jib</image>
<tags>
<tag>latest</tag>
<tag>0.0.1</tag>
</tags>
</to>
<container>
<ports>
<port>8080</port>
</ports>
</container>
</configuration>
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.google.cloud.tools</groupId>-->
<!-- <artifactId>jib-maven-plugin</artifactId>-->
<!-- <version>3.2.1</version>-->
<!-- <configuration>-->
<!-- <from>-->
<!-- <image>eclipse-temurin:17-jre-focal</image>-->
<!-- </from>-->
<!-- <to>-->
<!-- <image>chinmayk/bookmarker-api-jib</image>-->
<!-- <tags>-->
<!-- <tag>latest</tag>-->
<!-- <tag>0.0.1</tag>-->
<!-- </tags>-->
<!-- </to>-->
<!-- <container>-->
<!-- <ports>-->
<!-- <port>8080</port>-->
<!-- </ports>-->
<!-- </container>-->
<!-- </configuration>-->
<!-- </plugin>-->
</plugins>
</build>

Expand Down

0 comments on commit f0dadcc

Please sign in to comment.