From 4fd65b16f18612c0c7bb2b47d3b1c3d94034ca36 Mon Sep 17 00:00:00 2001 From: vimal-knoldus Date: Tue, 3 Oct 2023 17:17:58 +0530 Subject: [PATCH] Azure pipeline --- .github/workflows/car-demo-azure.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/car-demo-azure.yml diff --git a/.github/workflows/car-demo-azure.yml b/.github/workflows/car-demo-azure.yml new file mode 100644 index 00000000..e8694cbf --- /dev/null +++ b/.github/workflows/car-demo-azure.yml @@ -0,0 +1,37 @@ +name: car-demo-azure-pipeline + +on: + push: + branches: [ main ] + +jobs: + setup-build-publish-deploy: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up JDK 19 + uses: actions/setup-java@v3 + with: + java-version: '19' + distribution: 'temurin' + cache: maven + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.AZURE_CREDENTIALS }} + - name: Azure CLI script + uses: azure/CLI@v1 + with: + azcliversion: 2.30.0 + inlineScript: | + az account show + az storage -h + - name: Build, Publish, and Deploy + env: + GITHUB_TOKEN: ${{ github.token }} + run: | + . az-svc-deployment.sh \ No newline at end of file