Skip to content

Commit 4512c18

Browse files
committed
[BUILD] - Publish docker image to adobe/kafka-operator docker hub repo
1 parent bb5b586 commit 4512c18

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: build-publish-docker-image
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Get tag name
14+
id: vars
15+
run: echo ::set-output name=tag::${GITHUB_REF:10}
16+
- uses: docker/build-push-action@v1
17+
with:
18+
dockerfile: Dockerfile
19+
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_PASSWORD }}
22+
repository: adobe/kafka-operator
23+
tag_with_ref: true
24+
push: ${{ startsWith(github.ref, 'refs/tags/') }}
25+
add_git_labels: true

0 commit comments

Comments
 (0)