forked from KafScale/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (99 loc) · 3.61 KB
/
docker.yml
File metadata and controls
109 lines (99 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Copyright 2025 Alexander Alten (novatechflow), NovaTechflow (novatechflow.com).
# This project is supported and financed by Scalytics, Inc. (www.scalytics.io).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Docker Images
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions: {}
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- name: broker
image: kafscale-broker
context: .
file: deploy/docker/broker.Dockerfile
- name: lfs-proxy
image: kafscale-lfs-proxy
context: .
file: deploy/docker/lfs-proxy.Dockerfile
- name: operator
image: kafscale-operator
context: .
file: deploy/docker/operator.Dockerfile
- name: console
image: kafscale-console
context: .
file: deploy/docker/console.Dockerfile
- name: etcd-tools
image: kafscale-etcd-tools
context: .
file: deploy/docker/etcd-tools.Dockerfile
- name: iceberg-processor
image: kafscale-iceberg-processor
context: addons/processors/iceberg-processor
file: addons/processors/iceberg-processor/Dockerfile
- name: sql-processor
image: kafscale-sql-processor
context: addons/processors/sql-processor
file: addons/processors/sql-processor/Dockerfile
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Set up QEMU
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Log in to GHCR
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
with:
images: ghcr.io/kafscale/${{ matrix.image }}
tags: |
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
release:
runs-on: ubuntu-latest
needs: build-and-push
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- name: Create GitHub release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2
with:
generate_release_notes: true
prerelease: ${{ contains(github.ref_name, '-dev') || contains(github.ref_name, '-rc') }}