From 769e3e97db58bdbca2c2a2bacd1b97b775d7911f Mon Sep 17 00:00:00 2001 From: kuldeep Date: Tue, 16 Jul 2024 21:02:27 +0530 Subject: [PATCH] updated flow file1 --- .github/workflows/gcp.yml | 68 +-------------------------------------- 1 file changed, 1 insertion(+), 67 deletions(-) diff --git a/.github/workflows/gcp.yml b/.github/workflows/gcp.yml index fc2a150..9d20b5a 100644 --- a/.github/workflows/gcp.yml +++ b/.github/workflows/gcp.yml @@ -15,45 +15,7 @@ env: GOOGLE_GEMINI_API_KEY: ${{ secrets.GOOGLE_GEMINI_API_KEY }} jobs: - build: -# runs-on: ubuntu-latest -# steps: -# - name: Checkout code -# uses: actions/checkout@v4 -# -# # Set up JDK for Java projects -# - name: Set up JDK 21 -# uses: actions/setup-java@v4 -# with: -# java-version: '21' -# distribution: 'temurin' -# cache: maven -# -# # Set up Node.js for Angular projects -# - name: Set up Node.js -# uses: actions/setup-node@v4 -# with: -# node-version: '21' -# -# # Build Java and Angular projects -# - name: Build Projects -# run: | -# SERVICE_NAMES=$(cat projects-changes-deploy.txt) -# echo "Service Names: $SERVICE_NAMES" -# for SERVICE_NAME in $(echo $SERVICE_NAMES | tr ',' ' '); do -# echo "Building $SERVICE_NAME" -# if [ -d "$SERVICE_NAME" ]; then -# cd $SERVICE_NAME -# if [ "$SERVICE_NAME" == "blogs-analyzer-ui" ]; then -# npm install && npm test && npm install -g sonarqube-scanner && npm run sonar -# else -# mvn clean install -Psonar -B -V -# fi -# cd .. -# fi -# done - -# deploy: + deploy: runs-on: ubuntu-latest steps: - name: Checkout code @@ -80,34 +42,6 @@ jobs: - name: Install gke-gcloud-auth-plugin run: | gcloud components install gke-gcloud-auth-plugin - - # Setup for Java projects - - name: Set up JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' - cache: maven -# -# - name: Build and Push Docker Images -# run: | -# COMMIT_SHA=$(git rev-parse --short HEAD) -# SERVICE_NAMES=$(cat projects-changes-deploy.txt) -# echo "Service Names: $SERVICE_NAMES" -# for SERVICE_NAME in $(echo $SERVICE_NAMES | tr ',' ' '); do -# echo "Building and pushing Docker image for $SERVICE_NAME" -# if [ -d "$SERVICE_NAME" ]; then -# cd $SERVICE_NAME -# if [ "$SERVICE_NAME" != "blogs-analyzer-ui" ]; then -# mvn clean install -DskipTests -# fi -# IMAGE_NAME=gcr.io/gen-lang-client-0999974873/$SERVICE_NAME:$COMMIT_SHA -# docker build -t $IMAGE_NAME . -# docker push $IMAGE_NAME -# cd .. -# fi -# done - - name: Check environment variables run: | echo "PROJECT_ID=$PROJECT_ID"