Skip to content

Commit e3dfdd0

Browse files
committed
🚀 Add Dockerhub publish during release
1 parent d8fd5c3 commit e3dfdd0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
username: ${{ github.actor }}
6161
password: ${{ secrets.GITHUB_TOKEN }}
6262

63+
- name: Login to Dockerhub
64+
uses: docker/login-action@v3
65+
with:
66+
username: ${{ secrets.DOCKERHUB_USERNAME }}
67+
password: ${{ secrets.DOCKERHUB_TOKEN }}
68+
6369
- name: Build & push docker image
6470
id: docker_build_and_push
6571
uses: docker/build-push-action@v5
@@ -72,6 +78,8 @@ jobs:
7278
tags: |
7379
ghcr.io/kafbat/kafka-ui:${{ steps.build.outputs.version }}
7480
ghcr.io/kafbat/kafka-ui:main
81+
kafbat/kafka-ui:${{ steps.build.outputs.version }}
82+
kafbat/kafka-ui:main
7583
build-args: |
7684
JAR_FILE=api-${{ steps.build.outputs.version }}.jar
7785
cache-from: type=local,src=/tmp/.buildx-cache

0 commit comments

Comments
 (0)