Skip to content

Commit

Permalink
feat(docker-release): add feat-docker-release branch to push trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq committed Apr 30, 2024
1 parent a7c01ea commit 18b41a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Docker Release

on:
workflow_dispatch:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
branches:
- feat-docker-release

jobs:
docker-release:
Expand Down Expand Up @@ -45,7 +46,7 @@ jobs:
id: image_tags
run: |
LATEST_TAG=$(git fetch --tags && git tag --sort=-v:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
echo "LATEST_TAG=${LATEST_TAG}"
if [ "$LATEST_TAG" == "${{ github.ref_name }}" ]; then
echo "::set-output name=tags::${{ secrets.DOCKERHUB_USERNAME }}/kafka:${{ github.ref_name }}, ${{ secrets.DOCKERHUB_USERNAME }}/kafka:latest"
else
Expand Down

0 comments on commit 18b41a6

Please sign in to comment.