Skip to content

Commit

Permalink
Enable deploy to preprod and prod (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-moj authored Dec 16, 2024
1 parent ce158ac commit c3cc189
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 25 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,23 @@ jobs:
with:
environment: 'dev'
app_version: '${{ needs.build.outputs.app_version }}'
# deploy_preprod:
# name: Deploy to pre-production environment
# needs:
# - build
# - deploy_dev
# uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # WORKFLOW_VERSION
# secrets: inherit
# with:
# environment: 'preprod'
# app_version: '${{ needs.build.outputs.app_version }}'
# deploy_prod:
# name: Deploy to production environment
# needs:
# - build
# - deploy_preprod
# uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # WORKFLOW_VERSION
# secrets: inherit
# with:
# environment: 'prod'
# app_version: '${{ needs.build.outputs.app_version }}'
deploy_preprod:
name: Deploy to pre-production environment
needs:
- build
- deploy_dev
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # WORKFLOW_VERSION
secrets: inherit
with:
environment: 'preprod'
app_version: '${{ needs.build.outputs.app_version }}'
deploy_prod:
name: Deploy to production environment
needs:
- build
- deploy_preprod
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # WORKFLOW_VERSION
secrets: inherit
with:
environment: 'prod'
app_version: '${{ needs.build.outputs.app_version }}'
2 changes: 1 addition & 1 deletion helm_deploy/hmpps-allocate-key-workers-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ generic-service:
# the IRSA service account name for accessing AWS resources
# serviceAccountName: "hmpps-allocate-key-workers-ui"

replicaCount: 4
replicaCount: 2

image:
repository: ghcr.io/ministryofjustice/hmpps-allocate-key-workers-ui
Expand Down
2 changes: 0 additions & 2 deletions helm_deploy/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Per environment values which override defaults in hmpps-allocate-key-workers-ui/values.yaml

generic-service:
replicaCount: 2

ingress:
host: allocate-key-workers-dev.hmpps.service.justice.gov.uk

Expand Down
2 changes: 0 additions & 2 deletions helm_deploy/values-preprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Per environment values which override defaults in hmpps-allocate-key-workers-ui/values.yaml

generic-service:
replicaCount: 2

ingress:
host: allocate-key-workers-preprod.hmpps.service.justice.gov.uk

Expand Down

0 comments on commit c3cc189

Please sign in to comment.