Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 6eeb03f

Browse files
committed
Add github action docker build and use github docker registry
1 parent c30c4d5 commit 6eeb03f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/docker.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Docker
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- "^v?[0-9]+.[0-9]+.[0-9]+"
8+
jobs:
9+
docker:
10+
name: Docker
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Build kafka-operator
16+
uses: docker/build-push-action@v1
17+
with:
18+
username: ${{ github.actor }}
19+
password: ${{ secrets.CR_PAT }}
20+
registry: ghcr.io
21+
repository: banzaicloud/kafka-operator
22+
dockerfile: Dockerfile
23+
tag_with_ref: true
24+
add_git_labels: true

0 commit comments

Comments
 (0)