Skip to content

Commit

Permalink
Fix Github-Action (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvatsal60 authored Sep 15, 2024
2 parents ea8b752 + 8fd0c1f commit f004ff9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docker-img-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ jobs:
if [ "${{ github.event.inputs.version }}" != "" ]; then
echo "TAG_NAME=${{ github.event.inputs.version }}" >> "${GITHUB_ENV}"
fi;
- name: Build Docker image only
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v6
with:
context: Dockerfiles
file: ${{ matrix.dockerfile }}
push: false
tags: ghcr.io/${{ env.IMG_REPO_NAME }}:${{ env.TAG_NAME }}
- name: Build and push Docker image
if: github.event_name == 'push'
uses: docker/build-push-action@v6
with:
context: Dockerfiles
Expand Down

0 comments on commit f004ff9

Please sign in to comment.