Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sir5kong committed May 7, 2023
1 parent c6e5dda commit 8c3a0e4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
CR_REPO: sir5kong/kafka
KAFKA_VERSION: "3.3.2"

jobs:
docker:
Expand All @@ -23,6 +24,10 @@ jobs:
#-
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
-
name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
-
name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -35,4 +40,10 @@ jobs:
with:
context: .
push: true
tags: ${{ env.CR_REPO }}:${{ github.ref_name }}
build-args: |
kafka_version=${{ env.KAFKA_VERSION }}
tags: |
${{ env.CR_REPO }}:latest
${{ env.CR_REPO }}:${{ env.KAFKA_VERSION }}
${{ env.CR_REPO }}:${{ env.KAFKA_VERSION }}-${{ github.ref_name }}
${{ env.CR_REPO }}:${{ steps.vars.outputs.sha_short }}

0 comments on commit 8c3a0e4

Please sign in to comment.