-
Notifications
You must be signed in to change notification settings - Fork 0
239 lines (204 loc) · 6.31 KB
/
image.yaml
File metadata and controls
239 lines (204 loc) · 6.31 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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
name: Build image
on:
workflow_dispatch:
push:
branches: [ "main" ]
jobs:
build:
name: Build image
runs-on: ubuntu-latest
env:
IMAGE_NAME: image
REGISTRY: ghcr.io/queil
steps:
- name: Clone the repository
uses: actions/checkout@v3
- name: "Fix no space left on device"
run: rm -rf /opt/hostedtoolcache
# -- first build & push base so it can be reused downstream
- name: base
id: base
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: latest ${{ github.sha }}
context: .
containerfiles: |
./images/Containerfile
- name: Log in to the GitHub Container registry
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push base
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.base.outputs.image }}
tags: ${{ steps.base.outputs.tags }}
registry: ${{ env.REGISTRY }}
# -- build the rest of the variants
# ---- AKS ----
# - name: aks
# id: aks
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: aks
# context: .
# containerfiles: |
# ./images/aks.Containerfile
# - name: Push aks
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.aks.outputs.image }}
# tags: ${{ steps.aks.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- DEVOPS ----
# - name: devops
# id: devops
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: devops
# context: .
# containerfiles: |
# ./images/devops.Containerfile
#
# - name: Push devops
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.devops.outputs.image }}
# tags: ${{ steps.devops.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- HUGO ----
# - name: hugo
# id: hugo
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: hugo
# context: .
# containerfiles: |
# ./images/hugo.Containerfile
# - name: Push hugo
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.hugo.outputs.image }}
# tags: ${{ steps.hugo.outputs.tags }}
# registry: ${{ env.REGISTRY }}
- name: nodejs
id: nodejs
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: nodejs
context: .
containerfiles: |
./images/nodejs.Containerfile
- name: Push nodejs
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.nodejs.outputs.image }}
tags: ${{ steps.nodejs.outputs.tags }}
registry: ${{ env.REGISTRY }}
# ---- MKDOCS ----
# - name: mkdocs
# id: mkdocs
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: mkdocs
# context: .
# containerfiles: |
# ./images/mkdocs.Containerfile
#
# - name: Push mkdocs
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.mkdocs.outputs.image }}
# tags: ${{ steps.mkdocs.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- CDK ----
# - name: cdk
# id: cdk
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: cdk
# context: .
# containerfiles: |
# ./images/cdk.Containerfile
#
# - name: Push cdk
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.cdk.outputs.image }}
# tags: ${{ steps.cdk.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- DOTNET 8 ----
- name: dotnet-8
id: dotnet8
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: dotnet-8
context: .
containerfiles: |
./images/dotnet-8.Containerfile
- name: Push dotnet-8
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.dotnet8.outputs.image }}
tags: ${{ steps.dotnet8.outputs.tags }}
registry: ${{ env.REGISTRY }}
- name: aks-dotnet
id: aks-dotnet
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: aks-dotnet
context: .
containerfiles: |
./images/aks-dotnet.Containerfile
- name: Push aks-dotnet
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.aks-dotnet.outputs.image }}
tags: ${{ steps.aks-dotnet.outputs.tags }}
registry: ${{ env.REGISTRY }}
# ---- RUST ----
# - name: rust
# id: rust
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: rust
# context: .
# containerfiles: |
# ./images/rust.Containerfile
#
# - name: Push rust
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.rust.outputs.image }}
# tags: ${{ steps.rust.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# # ---- PYTHON ----
#
# - name: python
# id: python
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: python
# context: .
# containerfiles: |
# ./images/python.Containerfile
#
# - name: Push python
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.python.outputs.image }}
# tags: ${{ steps.python.outputs.tags }}
# registry: ${{ env.REGISTRY }}