Skip to content

Commit

Permalink
Added package lifecycle for jib
Browse files Browse the repository at this point in the history
  • Loading branch information
MichiBaum committed Feb 19, 2024
1 parent 6148f26 commit e1e67ba
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
- name: Generate Javadoc
run: mvn javadoc:aggregate

- name: Maven Clean install
- name: Maven package
# Windows: ./mvnw compile jib:build "-DdockerHub.username=${{secrets.DOCKER_USERNAME}}" "-DdockerHub.password=${{secrets.DOCKER_PASSWORD}}"
run: mvn compile jib:build -DdockerHub.username=${{secrets.DOCKER_USERNAME}} -DdockerHub.password=${{secrets.DOCKER_PASSWORD}}
run: mvn package -DdockerHub.username=${{secrets.DOCKER_USERNAME}} -DdockerHub.password=${{secrets.DOCKER_PASSWORD}}
8 changes: 8 additions & 0 deletions admin-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
Expand Down
8 changes: 8 additions & 0 deletions authentication-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.7'
services:

registry-service:
image: 70131370/registry-service:1.0.0-TEST-8
image: 70131370/registry-service
env_file:
- .env
- .env.override
Expand All @@ -24,7 +24,7 @@ services:
memory: 250M

admin-service:
image: 70131370/admin-service:1.0.0-TEST-8
image: 70131370/admin-service
env_file:
- .env
- .env.override
Expand All @@ -47,7 +47,7 @@ services:
memory: 250M

javadoc-service:
image: 70131370/javadoc-service:1.0.0-TEST-8
image: 70131370/javadoc-service
env_file:
- .env
- .env.override
Expand All @@ -70,7 +70,7 @@ services:
memory: 250M

authentication-service:
image: 70131370/authentication-service:1.0.0-TEST-8
image: 70131370/authentication-service
env_file:
- .env
- .env.override
Expand Down Expand Up @@ -111,7 +111,7 @@ services:
- microservice-network

usermanagement-service:
image: 70131370/usermanagement-service:1.0.0-TEST-8
image: 70131370/usermanagement-service
env_file:
- .env
- .env.override
Expand Down Expand Up @@ -153,7 +153,7 @@ services:
- microservice-network

gateway-service:
image: 70131370/gateway-service:1.0.0-TEST-8
image: 70131370/gateway-service
env_file:
- .env
- .env.override
Expand Down
8 changes: 8 additions & 0 deletions gateway-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
Expand Down
8 changes: 8 additions & 0 deletions javadoc-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
Expand Down
8 changes: 8 additions & 0 deletions registry-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
Expand Down
8 changes: 8 additions & 0 deletions usermanagement-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
Expand Down

0 comments on commit e1e67ba

Please sign in to comment.