Skip to content

Commit

Permalink
Rework deploy_test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexw-moj committed Jan 24, 2025
1 parent a92794e commit 3003156
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,17 @@ jobs:
helm_timeout: '5m'

deploy_test:
name: Deploy to ${{ inputs.deploy_to }}
needs: build
name: Deploy to test
needs:
- build
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2
runs-on: ubuntu-latest
if: inputs.deploy_to != '' # Only run if deploy_to is specified
if: inputs.deploy_to == 'test'
environment:
name: ${{ inputs.deploy_to }}
name: 'test'
steps:
- name: Deploy
uses: ministryofjustice/hmpps-github-actions/.github/workflows/deploy_env.yml@v2 # Check correct path
with:
environment: ${{ inputs.deploy_to }}
app_version: ${{ github.sha }} # Use commit SHA for version
helm_timeout: 5m
environment: 'test'
app_version: '${{ needs.build.outputs.app_version }}'
helm_timeout: '5m'

0 comments on commit 3003156

Please sign in to comment.