-
Notifications
You must be signed in to change notification settings - Fork 1
159 lines (156 loc) · 5.4 KB
/
images.yaml
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: images
on:
push:
branches:
- main
- nodejs-*
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
packages: write
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
uses: actions/setup-go@v5
with:
go-version: 1.22
-
uses: imjasonh/[email protected]
-
run: |
set -x
TAG_KKV=7fa31f42731fc20a77988b478a3896732cc3dc88
TAG_HOOK=92363d7d1771abc780e7559c778215be61f934d4
TAG_KAFKA=2.5.1-kafka-server-start
TAG_ZOOKEEPER=2.5.1-zookeeper-server-start
TAG_INITUTILS=initutils-nonroot@sha256:8988aca5b34feabe8d7d4e368f74b2ede398f692c7e99a38b262a938d475812c
TAG_ENVOY=v1.32.3
TAG_CURL=8.9.1
TAG_BUSYBOX=1.36.1-glibc
TAG_TINYGO=0.32.0
crane cp docker.io/yolean/kafka-keyvalue:$TAG_KKV ghcr.io/yolean/kafka-keyvalue:$TAG_KKV
crane digest docker.io/yolean/kafka-hook:$TAG_HOOK
crane cp docker.io/yolean/kafka-hook:$TAG_HOOK ghcr.io/yolean/kafka-hook:$TAG_HOOK
crane cp solsson/kafka:$TAG_KAFKA ghcr.io/yolean/kafka:$TAG_KAFKA
crane cp solsson/kafka:$TAG_ZOOKEEPER ghcr.io/yolean/kafka:$TAG_ZOOKEEPER
crane cp solsson/kafka:$TAG_INITUTILS ghcr.io/yolean/kafka:$TAG_INITUTILS
crane cp solsson/minio-deduplication@sha256:af91c49ce795eb8406c6303d41fd874e231459bd8a5897a35bb12e1cc8f762a6 ghcr.io/yolean/minio-deduplication
crane cp envoyproxy/envoy:v1.17.0 ghcr.io/yolean/envoy:v1.17.0
crane cp envoyproxy/envoy:$TAG_ENVOY ghcr.io/yolean/envoy:$TAG_ENVOY
crane cp envoyproxy/envoy-distroless:$TAG_ENVOY ghcr.io/yolean/envoy-distroless:$TAG_ENVOY
crane cp curlimages/curl:$TAG_CURL ghcr.io/yolean/curl:$TAG_CURL
crane cp busybox:$TAG_BUSYBOX ghcr.io/yolean/busybox:$TAG_BUSYBOX
crane cp mailgun/kafka-pixy:0.17.0@sha256:0b5f4795c0b0d80729fa7415ec70ae4d411e152c6149656dddf01b18184792e0 ghcr.io/yolean/kafka-pixy:0.17.0
crane cp tinygo/tinygo:$TAG_TINYGO ghcr.io/yolean/tinygo:$TAG_TINYGO
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
### build steps below are generated ###
-
name: Build and push node root
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: node
tags: |
ghcr.io/yolean/node:root
ghcr.io/yolean/node:${{ github.sha }}-root
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
-
name: Build and push node latest
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: to-nonroot/node
tags: |
ghcr.io/yolean/node:latest
ghcr.io/yolean/node:${{ github.sha }}
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: |
yolean/node:root=docker-image://ghcr.io/yolean/node:root
-
name: Build and push node-kafka root
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: node-kafka
tags: |
ghcr.io/yolean/node-kafka:root
ghcr.io/yolean/node-kafka:${{ github.sha }}-root
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: |
yolean/node:root=docker-image://ghcr.io/yolean/node:root
-
name: Build and push node-kafka latest
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: to-nonroot/node-kafka
tags: |
ghcr.io/yolean/node-kafka:latest
ghcr.io/yolean/node-kafka:${{ github.sha }}
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: |
yolean/node-kafka:root=docker-image://ghcr.io/yolean/node-kafka:root
-
name: Build and push node-kafka-cache root
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: node-kafka-cache
tags: |
ghcr.io/yolean/node-kafka-cache:root
ghcr.io/yolean/node-kafka-cache:${{ github.sha }}-root
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: |
yolean/node-kafka:root=docker-image://ghcr.io/yolean/node-kafka:root
-
name: Build and push node-kafka-cache latest
uses: docker/build-push-action@v5
env:
SOURCE_DATE_EPOCH: 0
with:
context: to-nonroot/node-kafka-cache
tags: |
ghcr.io/yolean/node-kafka-cache:latest
ghcr.io/yolean/node-kafka-cache:${{ github.sha }}
platforms: linux/amd64,linux/arm64/v8
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: |
yolean/node-kafka-cache:root=docker-image://ghcr.io/yolean/node-kafka-cache:root