diff --git a/.github/workflows/docker-hub-release.yaml b/.github/workflows/docker-hub-release.yaml index a02ec2fc1..69e083d22 100644 --- a/.github/workflows/docker-hub-release.yaml +++ b/.github/workflows/docker-hub-release.yaml @@ -30,6 +30,9 @@ on: pull_request: branches: - main + paths: + - 'Dockerfile' + - 'src/main/**' env: IMAGE_NAMESPACE: "tractusx" @@ -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'