-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
359 changed files
with
15,721 additions
and
43,559 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,36 @@ | ||
name: Enforce Branch Naming Convention | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
branch-name-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Enforce branch naming convention | ||
run: | | ||
# Get the branch name | ||
branch_name=$(echo "${GITHUB_REF#refs/heads/}") | ||
# Define the branch name pattern | ||
branch_regex="^(master|develop|(HCMPRE|HCMPOST|HCMSUB)-[0-9]{3,}-[a-zA-Z0-9-]+)$" | ||
# Check if the branch name matches the pattern | ||
if [[ ! "$branch_name" =~ $branch_regex ]]; then | ||
echo "Branch name '$branch_name' does not follow the required naming convention." | ||
echo "Branch names must follow the pattern: (HCMPRE|HCMPOST|HCMSUB)-123-description" | ||
exit 1 | ||
fi | ||
- name: Success message | ||
run: | | ||
branch_name=$(echo "${GITHUB_REF#refs/heads/}") | ||
echo "Branch name '$branch_name' follows the required naming convention: 'master', 'develop', or (HCMPRE|HCMPOST|HCMSUB)-123-description" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,77 +1,72 @@ | ||
name: project factory service docker Image CI | ||
name: Project Factory Service Test Builder | ||
|
||
on: | ||
push: | ||
branches: [ "campaign" ] | ||
branches: | ||
- "console" | ||
- "master" | ||
paths: | ||
- 'utilities/project-factory/**' | ||
- 'health-services/project-factory/**' | ||
pull_request: | ||
branches: [ "campaign" ] | ||
branches: | ||
- "console" | ||
- "master" | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for tags and branches | ||
# Step 1: Checkout the repository | ||
- 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 | ||
# Step 2: Set up environment variables | ||
- name: Set up environment variables | ||
id: env | ||
run: | | ||
echo "ACTION_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
- name: Build the service Docker image | ||
id: docker_build | ||
working-directory: ./utilities/project-factory | ||
run: | | ||
IMAGE_TAG=egovio/project-factory:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=image_name::$IMAGE_TAG" | ||
# Step 3: Build the service Docker image | ||
- name: Build the service Docker image | ||
id: docker_build | ||
working-directory: ./health-services/project-factory | ||
run: | | ||
IMAGE_TAG=egovio/project-factory:${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=image_name::$IMAGE_TAG" | ||
echo "Service Docker image built successfully" | ||
# Step 4: Build the database migration Docker image | ||
- name: Build the DB migration Docker image | ||
id: docker_db_build | ||
working-directory: ./health-services/project-factory/migration | ||
run: | | ||
IMAGE_TAG=egovio/project-factory-db:${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=db_image_name::$IMAGE_TAG" | ||
echo "DB migration Docker image built successfully" | ||
- name: Build the db migration Docker image | ||
id: docker_db_build | ||
working-directory: ./utilities/project-factory/migration | ||
run: | | ||
IMAGE_TAG=egovio/project-factory-db:${{ env.BRANCH_NAME }}-${{ env.COMMIT_ID }}-${{ env.ACTION_NUMBER }} | ||
docker build . \ | ||
--file Dockerfile \ | ||
--tag $IMAGE_TAG | ||
echo "::set-output name=db_image_name::$IMAGE_TAG" | ||
node_build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout the repository | ||
- uses: actions/checkout@v3 | ||
|
||
# Step 2: Set up Node.js environment | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Login to Docker Hub and Push Docker Image | ||
working-directory: ./utilities/project-factory | ||
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" | ||
- name: Login to Docker Hub and Push DB Migration Docker Image | ||
working-directory: ./utilities/project-factory/migration | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DB_IMAGE_NAME: ${{ steps.docker_db_build.outputs.db_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 $DB_IMAGE_NAME | ||
echo "Docker image pushed: $DB_IMAGE_NAME" | ||
# Step 3: Install dependencies and build for production | ||
- name: Install dependencies and build | ||
working-directory: ./health-services/project-factory | ||
run: | | ||
yarn install | ||
yarn build |
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,18 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Remote", | ||
"address": "localhost", | ||
"port": 9229, | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "/app" | ||
} | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"editor.inlineSuggest.showToolbar": "onHover" | ||
} |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
* @kavi-egov @sathishp-eGov @shashwat-egov | ||
* @kavi-egov @sathishp-eGov | ||
|
||
health-services/project-factory/ @jagankumar-egov |
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
All notable changes to this module will be documented in this file. | ||
|
||
## 1.0.1 - 2024-08-29 | ||
|
||
- Added `BOOLEAN` DataType in `AttributeDefinition` | ||
|
||
## 1.0.0 | ||
|
||
- Base version |
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
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
Oops, something went wrong.