-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dpg-2227: added yml file for mfe module(engagement,fsm,tqm,pgr) (#166)
Co-authored-by: nabeelmd-eGov <[email protected]>
- Loading branch information
1 parent
5fe4467
commit 4d55419
Showing
4 changed files
with
196 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: engagement ui service docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "mf-build-docker" ] | ||
pull_request: | ||
branches: [ "mf-build" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for tags and branches | ||
|
||
- name: Set up environment variables | ||
id: env | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Extract last 8 characters of SHA | ||
- name: Build the Docker image | ||
id: docker_build | ||
working-directory: ./micro-ui/web/packages/engagement | ||
run: | | ||
IMAGE_TAG=egovio/engagement-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file docker/Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=image_name::$IMAGE_TAG" | ||
- name: Login to Docker Hub and Push Docker Image | ||
working-directory: ./micro-ui/web/packages/engagement | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
IMAGE_NAME: ${{ steps.docker_build.outputs.image_name }} | ||
run: | | ||
# Authenticate with Docker Hub | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
# Push the image to Docker Hub | ||
docker push $IMAGE_NAME | ||
echo "Docker image pushed: $IMAGE_NAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: fsm ui service docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "mf-build-docker" ] | ||
pull_request: | ||
branches: [ "mf-build" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for tags and branches | ||
|
||
- name: Set up environment variables | ||
id: env | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Extract last 8 characters of SHA | ||
- name: Build the Docker image | ||
id: docker_build | ||
working-directory: ./micro-ui/web/packages/fsm | ||
run: | | ||
IMAGE_TAG=egovio/fsm-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file docker/Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=image_name::$IMAGE_TAG" | ||
- name: Login to Docker Hub and Push Docker Image | ||
working-directory: ./micro-ui/web/packages/fsm | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
IMAGE_NAME: ${{ steps.docker_build.outputs.image_name }} | ||
run: | | ||
# Authenticate with Docker Hub | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
# Push the image to Docker Hub | ||
docker push $IMAGE_NAME | ||
echo "Docker image pushed: $IMAGE_NAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: pgr ui service docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "mf-build-docker" ] | ||
pull_request: | ||
branches: [ "mf-build" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for tags and branches | ||
|
||
- name: Set up environment variables | ||
id: env | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Extract last 8 characters of SHA | ||
- name: Build the Docker image | ||
id: docker_build | ||
working-directory: ./micro-ui/web/packages/pgr | ||
run: | | ||
IMAGE_TAG=egovio/pgr-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file docker/Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=image_name::$IMAGE_TAG" | ||
- name: Login to Docker Hub and Push Docker Image | ||
working-directory: ./micro-ui/web/packages/pgr | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
IMAGE_NAME: ${{ steps.docker_build.outputs.image_name }} | ||
run: | | ||
# Authenticate with Docker Hub | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
# Push the image to Docker Hub | ||
docker push $IMAGE_NAME | ||
echo "Docker image pushed: $IMAGE_NAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: tqm ui service docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "mf-build-docker" ] | ||
pull_request: | ||
branches: [ "mf-build" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for tags and branches | ||
|
||
- name: Set up environment variables | ||
id: env | ||
run: | | ||
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | ||
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
echo "COMMIT_ID=${GITHUB_SHA: -8}" >> $GITHUB_ENV # Extract last 8 characters of SHA | ||
- name: Build the Docker image | ||
id: docker_build | ||
working-directory: ./micro-ui/web/packages/tqm | ||
run: | | ||
IMAGE_TAG=egovio/tqm-ui:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file docker/Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=image_name::$IMAGE_TAG" | ||
- name: Login to Docker Hub and Push Docker Image | ||
working-directory: ./micro-ui/web/packages/tqm | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
IMAGE_NAME: ${{ steps.docker_build.outputs.image_name }} | ||
run: | | ||
# Authenticate with Docker Hub | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
# Push the image to Docker Hub | ||
docker push $IMAGE_NAME | ||
echo "Docker image pushed: $IMAGE_NAME" |