Skip to content

Commit

Permalink
[MOSIP-28241] Added build details in Dockerfile and docker build in p…
Browse files Browse the repository at this point in the history
…ush_tr… (#210)

* [28241] Added build details in Dockerfile and docker build in push_trigger.yml file

* [MOSIP-28241] Added build details in Dockerfile and docker build in push_trigger.yml file
  • Loading branch information
Prafulrakhade authored Jul 31, 2023
1 parent 87e3671 commit 8684c04
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,15 @@ jobs:
- name: Build hub image
run: |
docker build ./hub --file ./hub/Dockerfile --tag ${{ env.SERVICE_NAME }}
cd "./${{env.SERVICE_LOCATION}}"
# docker build ./hub --file ./hub/Dockerfile --tag ${{ env.SERVICE_NAME }}
docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}
- name: Build consolidator image
run: |
docker build ./consolidator --file ./consolidator/Dockerfile --tag ${{ env.CONSOLIDATOR_SERVICE_NAME }}
cd "./${{env.SERVICE_LOCATION}}"
# docker build ./consolidator --file ./consolidator/Dockerfile --tag ${{ env.CONSOLIDATOR_SERVICE_NAME }}
docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}
- name: Log into registry
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin

Expand Down
9 changes: 9 additions & 0 deletions consolidator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM openjdk:11

ARG SOURCE
ARG COMMIT_HASH
ARG COMMIT_ID
ARG BUILD_TIME
LABEL source=${SOURCE}
LABEL commit_hash=${COMMIT_HASH}
LABEL commit_id=${COMMIT_ID}
LABEL build_time=${BUILD_TIME}
ARG consolidator_config_url
ARG max_heap_size=2048m
ARG ballerina_download_url=https://dist.ballerina.io/downloads/2201.0.0/ballerina-2201.0.0-swan-lake-linux-x64.deb
Expand Down
9 changes: 9 additions & 0 deletions hub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM openjdk:11

ARG SOURCE
ARG COMMIT_HASH
ARG COMMIT_ID
ARG BUILD_TIME
LABEL source=${SOURCE}
LABEL commit_hash=${COMMIT_HASH}
LABEL commit_id=${COMMIT_ID}
LABEL build_time=${BUILD_TIME}
ARG hub_config_url
ARG max_heap_size=2048m
ARG ballerina_download_url=https://dist.ballerina.io/downloads/2201.0.0/ballerina-2201.0.0-swan-lake-linux-x64.deb
Expand Down

0 comments on commit 8684c04

Please sign in to comment.