From aea330c26ae07560eaec1d7229b3a3a41e9e7d80 Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Mon, 19 Aug 2024 22:07:15 +0800 Subject: [PATCH] Cleanup workflows --- .github/workflows/{deploy.yml => ci.yml} | 16 +++++++--------- .github/workflows/deploy-dev.yml | 12 ------------ .github/workflows/deploy-prd.yml | 9 --------- 3 files changed, 7 insertions(+), 30 deletions(-) rename .github/workflows/{deploy.yml => ci.yml} (83%) delete mode 100644 .github/workflows/deploy-dev.yml delete mode 100644 .github/workflows/deploy-prd.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/ci.yml similarity index 83% rename from .github/workflows/deploy.yml rename to .github/workflows/ci.yml index 64c3f2b..93eaff8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,9 @@ on: - workflow_call: - inputs: - AZURE_ENV_NAME: - required: true - type: string + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} # GitHub Actions workflow to deploy to Azure using azd # To configure required secrets for connecting to Azure, simply run `azd pipeline config` @@ -17,12 +17,10 @@ permissions: jobs: build: runs-on: ubuntu-latest - environment: ${{ inputs.AZURE_ENV_NAME }} + environment: prd env: - AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID}} - AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID}} AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID}} - AZURE_ENV_NAME: ${{ inputs.AZURE_ENV_NAME }} + AZURE_ENV_NAME: prd AZURE_LOCATION: australiaeast steps: diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml deleted file mode 100644 index 48ec4d6..0000000 --- a/.github/workflows/deploy-dev.yml +++ /dev/null @@ -1,12 +0,0 @@ -on: - workflow_dispatch: - push: - branches: - - main - -jobs: - deploy-development: - uses: ./.github/workflows/deploy.yml - secrets: inherit - with: - AZURE_ENV_NAME: dev diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml deleted file mode 100644 index a5f228f..0000000 --- a/.github/workflows/deploy-prd.yml +++ /dev/null @@ -1,9 +0,0 @@ -on: - workflow_dispatch: - -jobs: - deploy-development: - uses: ./.github/workflows/deploy.yml - secrets: inherit - with: - AZURE_ENV_NAME: prd