From 6d735f24e1a2dd7c509a4be5ae56b005ad261433 Mon Sep 17 00:00:00 2001 From: Oleg Yankovich <33641729+krolol@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:04:23 +0200 Subject: [PATCH] Add separate deploy possibility --- .github/workflows/dev.yaml | 10 +++++++++- .github/workflows/prod.yaml | 10 +++++++++- .github/workflows/stage.yaml | 10 +++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index fe90557..965597c 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -4,6 +4,14 @@ on: branches: - dev workflow_dispatch: + inputs: + environment: + type: choice + required: false + description: 'Environment to deploy to' + options: + - squid + - squid-2 permissions: id-token: write @@ -15,6 +23,6 @@ jobs: with: environment: dev aws_account_id: ${{ vars.DEV_NETWORK_AWS_ACCOUNT_ID }} - repository: cere-squid + repository: cere-${{ inputs.environment }} file: ./Dockerfile secrets: inherit diff --git a/.github/workflows/prod.yaml b/.github/workflows/prod.yaml index 71546f6..740b0f5 100644 --- a/.github/workflows/prod.yaml +++ b/.github/workflows/prod.yaml @@ -4,6 +4,14 @@ on: branches: - master workflow_dispatch: + inputs: + environment: + type: choice + required: false + description: 'Environment to deploy to' + options: + - squid + - squid-2 permissions: id-token: write @@ -15,6 +23,6 @@ jobs: with: environment: prd aws_account_id: ${{ vars.DEV_NETWORK_AWS_ACCOUNT_ID }} - repository: cere-squid + repository: cere-${{ inputs.environment }} file: ./Dockerfile secrets: inherit diff --git a/.github/workflows/stage.yaml b/.github/workflows/stage.yaml index f4cc7db..53d274d 100644 --- a/.github/workflows/stage.yaml +++ b/.github/workflows/stage.yaml @@ -5,6 +5,14 @@ on: - 'release/**' - 'hotfix/**' workflow_dispatch: + inputs: + environment: + type: choice + required: false + description: 'Environment to deploy to' + options: + - squid + - squid-2 permissions: id-token: write @@ -16,6 +24,6 @@ jobs: with: environment: stg aws_account_id: ${{ vars.DEV_NETWORK_AWS_ACCOUNT_ID }} - repository: cere-squid + repository: cere-${{ inputs.environment }} file: ./Dockerfile secrets: inherit