Skip to content

Commit

Permalink
only deploy to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
james-jdgtl committed Nov 29, 2024
1 parent ce08968 commit 5bc09df
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ jobs:
push: true
secrets: inherit

deploy_to_dev:
name: Deploy to dev
uses: ./.github/workflows/deploy.yml
needs: build
with:
environment: development
version: ${{ needs.build.outputs.version }}
secrets: inherit
# deploy_to_dev:
# name: Deploy to dev
# uses: ./.github/workflows/deploy.yml
# needs: build
# with:
# environment: development
# version: ${{ needs.build.outputs.version }}
# secrets: inherit

# Only need to deploy to production nowadays
deploy_to_prod:
if : github.ref == 'refs/heads/main'
name: Deploy to prod
uses: ./.github/workflows/deploy.yml
needs:
- build
- deploy_to_dev # wait for the deploy_to_dev job to complete
with:
environment: production
version: ${{ needs.build.outputs.version }}
Expand Down

0 comments on commit 5bc09df

Please sign in to comment.