From 4eb69846877b0158032e9eba87a9cafb07fff4f7 Mon Sep 17 00:00:00 2001 From: Sushil Kumar Date: Thu, 23 Jun 2022 16:09:38 -0700 Subject: [PATCH] Created ADO pipeline (#57) - Disables the github workflow for infrastructures - Adds an ADO pipeline - Current code is just a dummy pipeline test --- .github/workflows/run-setup-script.yml | 74 -------------------------- azure-pipelines/PR-pipeline.yml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 74 deletions(-) delete mode 100644 .github/workflows/run-setup-script.yml create mode 100644 azure-pipelines/PR-pipeline.yml diff --git a/.github/workflows/run-setup-script.yml b/.github/workflows/run-setup-script.yml deleted file mode 100644 index 07c6522..0000000 --- a/.github/workflows/run-setup-script.yml +++ /dev/null @@ -1,74 +0,0 @@ - -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT license. - -name: Azure ARM -on: - push: - # Runs tests for pushes to main branch. - branches: - - '*' - # Runs tests for any PRs. - pull_request: - branches: - - '*' -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - # Checkout code - - uses: actions/checkout@main - - # Log into Azure - - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - name: Setup environment - id: vars - shell: bash - run: | - echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - MD5_OUTPUT="$(echo $(date +%s) | md5sum | awk '{print $1}')" - echo "::set-output name=ENV_CODE::$(echo pr${MD5_OUTPUT:0:7})" - - - name: Install Azure Infrastructure - run: | - chars='@#$%&_+=' - export POSTGRES_ADMIN_LOGIN_PASS=$({