chore: Create final docker image only on tag creation

This commit is contained in:
2024-01-09 18:44:00 +01:00
parent 997f519bbc
commit 6402b01fd0
+3 -2
View File
@@ -1,7 +1,8 @@
name: Docker image
on:
push:
branches: [ "main" ]
tags:
- '*'
pull_request:
jobs:
@@ -30,7 +31,7 @@ jobs:
gradle-version: 8.5
cache-read-only: true
- name: Create and publish docker image
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push'
run: ./gradlew -Prelease.useLastTag=true final jib
env:
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}