Skip to content

Commit

Permalink
run on all branches but only build + deploy on main
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jdgtl committed Oct 17, 2024
1 parent e1f8454 commit 2f9ebf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Pipeline [test -> build -> deploy]
on:
push:
branches:
- main
# - '**'
- '**'
workflow_dispatch:
inputs:
environment:
Expand Down Expand Up @@ -82,6 +81,7 @@ jobs:
environment: ${{ inputs.environment || 'dev' }}
build:
name: Build docker image from hmpps-github-actions
if: github.ref == 'refs/heads/main'
uses: ministryofjustice/hmpps-github-actions/.github/workflows/docker_build.yml@v1 # WORKFLOW_VERSION
needs:
- node_integration_tests
Expand All @@ -94,6 +94,7 @@ jobs:
docker_multiplatform: ${{ inputs.docker_multiplatform || false }}
deploy_dev:
name: Deploy
if: github.ref == 'refs/heads/main'
needs:
- build
- helm_lint
Expand Down

0 comments on commit 2f9ebf1

Please sign in to comment.