Skip to content

Commit

Permalink
[BUILD] - Publish docker image to adobe/kafka-operator docker hub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
amuraru committed Jun 1, 2020
1 parent bb5b586 commit 4512c18
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build-publish-docker-image

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get tag name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF:10}
- uses: docker/build-push-action@v1
with:
dockerfile: Dockerfile
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: adobe/kafka-operator
tag_with_ref: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
add_git_labels: true

0 comments on commit 4512c18

Please sign in to comment.