diff --git a/.github/workflows/car-demo-pipeline.yml b/.github/workflows/car-demo-pipeline.yml index 93cfa0ac..2a73e04d 100644 --- a/.github/workflows/car-demo-pipeline.yml +++ b/.github/workflows/car-demo-pipeline.yml @@ -36,7 +36,7 @@ jobs: gcloud --quiet auth configure-docker - name: Build, Publish, and Deploy - env: - GITHUB_TOKEN: ${{ github.token }} run: | - . apps-deployment-script.sh "us-east1" \ No newline at end of file + . apps-deployment-script.sh "us-east1" + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/apps-deployment-script.sh b/apps-deployment-script.sh index 61379fbe..a8791ace 100644 --- a/apps-deployment-script.sh +++ b/apps-deployment-script.sh @@ -43,7 +43,8 @@ do "common") echo "=========================Deploying common package==================" cd common || exit - mvn -B clean deploy --file pom.xml + mvn -B package --file pom.xml + mvn deploy -s $GITHUB_WORKSPACE/settings.xml cd ..;; # case 2 build and deploy order-service