From d7e71eeb78523692d00b373427d4b0358235e908 Mon Sep 17 00:00:00 2001 From: vivek kasture Date: Mon, 14 Oct 2024 19:39:37 +0530 Subject: [PATCH 01/30] Issue #PS-0000 merge: Merged release-1.0.0 into main --- .../workflows/prod-pratham-deployment.yaml | 61 +++++++++++++++++++ .../workflows/tekdi-server-deployment.yaml | 25 -------- 2 files changed, 61 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/prod-pratham-deployment.yaml delete mode 100644 .github/workflows/tekdi-server-deployment.yaml diff --git a/.github/workflows/prod-pratham-deployment.yaml b/.github/workflows/prod-pratham-deployment.yaml new file mode 100644 index 00000000..5f36b7a0 --- /dev/null +++ b/.github/workflows/prod-pratham-deployment.yaml @@ -0,0 +1,61 @@ +name: PROD FRONTEND DEPLOYMENT WITH TAG +on: + push: + tags: + - 'v*' + +jobs: + PROD-FRONTEND-TAG-BASE-DEPLOYMENT: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set TAG environment variable + id: get_tag + run: | + # Extract the tag from the ref and set it as an environment variable + echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + + - name: Debug TAG value + run: | + # Print the TAG value to ensure the correct tag is being used + echo "TAG value - ${{ env.TAG }}" + + - name: Deploy Stack + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST_NAME_PROD }} + username: ${{ secrets.USERNAME_PROD }} + key: ${{ secrets.SSH_KEY_PROD }} + port: ${{ secrets.PORT_PROD }} + script: | + # Assign the TAG value from the environment variable + TAG="${{ env.TAG }}" + + # Define the target directory and environment file + TARGET_DIR="${{ secrets.TARGET_DIR_PROD }}" + ENVIRONMENT="$TARGET_DIR/.env" + + # Remove the existing .env file if it exists + if [ -f "$ENVIRONMENT" ]; then + rm "$ENVIRONMENT" + fi + + # Create the target directory if it doesn't exist and write environment variables to .env + mkdir -p "$TARGET_DIR" + cat << EOF > "$ENVIRONMENT" + ${{ secrets.PROD_ENV }} + EOF + + # Navigate to the target directory + cd ${{ secrets.TARGET_DIR_PROD }} + + # List the contents of the directory for verification + ls -ltra + + # Run the deployment script with the correct TAG + ./deploy.sh $TAG \ No newline at end of file diff --git a/.github/workflows/tekdi-server-deployment.yaml b/.github/workflows/tekdi-server-deployment.yaml deleted file mode 100644 index a4f543cf..00000000 --- a/.github/workflows/tekdi-server-deployment.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Deployment on the Tekdi Frontend Server -on: - push: - branches: - - release-1.0.0 -jobs: - TEKDI-QA-DEPLOYMENT: - runs-on: ubuntu-latest - timeout-minutes: 15 - steps: - - name: Deploy Stack - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.HOST_NAME_TEKDI }} - username: ${{ secrets.USERNAME_TEKDI }} - key: ${{ secrets.EC2_SSH_KEY_TEKDI }} - port: ${{ secrets.PORT_TEKDI }} - script: | - cd ${{ secrets.TARGET_DIR_TEKDI }} - if [ -f .env ]; then - rm .env - fi - echo "${{ secrets.QA_ENV }}" > .env - ls -ltra - ./deploy.sh From 587b840c4614f96d099790bf13eac6e172c6f9eb Mon Sep 17 00:00:00 2001 From: vivek kasture Date: Tue, 15 Oct 2024 01:00:04 +0530 Subject: [PATCH 02/30] Issue #PS-000 fix: Commented inQuiry editor styles --- src/pages/_document.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 5779813f..58548872 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -5,10 +5,10 @@ export default function Document() { return ( - + /> */}