Skip to content

Commit

Permalink
fix: add condition for docker publish
Browse files Browse the repository at this point in the history
  • Loading branch information
danishjoseph committed Jul 16, 2024
1 parent e27343e commit 457e65a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install test dependencies
run: yarn install --production=false --only=dev

- name: Build Docker image
run: |
yarn nx run backend:docker-build --tag=${{ secrets.DOCKER_HUB_USERNAME }}/stockdog:v-${{ steps.version.outputs.VERSION }}
Expand All @@ -71,6 +74,7 @@ jobs:
name: Push Docker image to DockerHub
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Download Docker image
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 457e65a

Please sign in to comment.