Skip to content

Commit

Permalink
Add separate deploy possibility
Browse files Browse the repository at this point in the history
  • Loading branch information
krolol committed Aug 27, 2024
1 parent d518ef2 commit 6d735f2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
10 changes: 9 additions & 1 deletion .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
10 changes: 9 additions & 1 deletion .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6d735f2

Please sign in to comment.