Skip to content

Commit

Permalink
feat: run Docker release on PR only on specific folders
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoscode committed Sep 5, 2023
1 parent 1632703 commit 186104d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-hub-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ on:
pull_request:
branches:
- main
paths:
- 'Dockerfile'
- 'src/main/**'

env:
IMAGE_NAMESPACE: "tractusx"
Expand Down Expand Up @@ -74,6 +77,7 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: DockerHub login
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 186104d

Please sign in to comment.