From 30031567abd6df5abf9f3c4dc062f7e3fcacbd98 Mon Sep 17 00:00:00 2001 From: Alex Warhurst Date: Fri, 24 Jan 2025 13:30:51 +0000 Subject: [PATCH] Rework deploy_test --- .github/workflows/pipeline.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 64a64ec..a2b83d4 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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'