We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8c86c commit 0b9f4bfCopy full SHA for 0b9f4bf
.github/workflows/build-push-docker.yml
@@ -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