Skip to content

Commit

Permalink
fix: prod deploy condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Sep 26, 2023
1 parent 6e04ba2 commit 0ee46a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-and-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push Images
if: ((startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true)
uses: docker/build-push-action@v5
with:
context: .
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions: read-all
jobs:
build:
name: Deploy Shopify Tracker Image on production
if: ((startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true)
runs-on: ubuntu-latest

steps:
Expand All @@ -34,8 +35,6 @@ jobs:
echo "::set-output name=version::$VERSION"
- name: Build Shopify Tracker Docker Image
# Only merged pull requests must trigger
if: github.event.pull_request.merged == true
uses: ./.github/workflows/build-and-push-docker-image.yml
with:
img_tag: rudder-shopify-tracker:${{steps.get-version.outputs.version}}
Expand Down

0 comments on commit 0ee46a6

Please sign in to comment.