Skip to content

Commit

Permalink
Update car-demo-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech authored Jan 24, 2024
1 parent 64cb161 commit 04d3df9
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/car-demo-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: car-demo-common-service
name: GCP Pipeline

on:
push:
Expand All @@ -7,6 +7,23 @@ env:
PROJECT_ID: ${{ secrets.GKE_PROJECT }}

jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'temurin'
cache: maven
- name: SonarCloud Scan
working-directory: shipment-service
run: mvn clean verify sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=nashtech -Dsonar.projectKey=shipment-service
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
setup-build-publish-deploy:
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -34,22 +51,8 @@ jobs:
- name: configure docker
run: |-
gcloud --quiet auth configure-docker
- name: Debug Information
run: |
cat $GITHUB_WORKSPACE/settings.xml
env


- name: Display Actor and Token
run: |
echo "GITHUB_ACTOR: $GITHUB_ACTOR"
echo "GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}"
- name: Build, Publish, and Deploy
run: |
. apps-deployment-script.sh "us-east1"
# . apps-deployment-script.sh "us-east1"
env:
#CUSTOM_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 04d3df9

Please sign in to comment.