@@ -124,11 +124,11 @@ jobs:
124
124
password : ${{ secrets.SELF_TOKEN_CL }}
125
125
126
126
# #
127
- # Release > Github > Meta
127
+ # Release > Github > Meta > Package - Root
128
128
# #
129
129
130
- - name : " 🔨 Docker meta "
131
- id : task_release_gh_meta
130
+ - name : " 🔨 Docker Meta › Root "
131
+ id : task_release_gh_meta_root
132
132
uses : docker/metadata-action@v5
133
133
with :
134
134
images : |
@@ -137,141 +137,62 @@ jobs:
137
137
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
138
138
type=ref,event=tag
139
139
140
+ # #
141
+ # Release > Github > Meta > Package - PHP
142
+ # #
143
+
144
+ - name : " 🔨 Docker Meta › PHP"
145
+ id : task_release_gh_meta_php
146
+ uses : docker/metadata-action@v5
147
+ with :
148
+ images : |
149
+ ghcr.io/Aetherinox/thetvapp-docker
150
+ tags : |
151
+ type=ref,enable=true,priority=600,prefix=,suffix=-php,event=tag
152
+ type=ref,event=tag
153
+
140
154
# #
141
155
# Release > Github > Debug
142
156
# #
143
157
144
158
- name : " 🪪 Debug › Print"
145
159
id : task_release_gh_print
146
160
run : |
147
- echo "registry ............. github "
161
+ echo "registry ............. Github "
148
162
echo "github.actor.......... ${{ github.actor }}"
149
163
echo "github.ref ........... ${{ github.ref }}"
150
164
echo "github.event_name .... ${{ github.event_name }}"
151
- echo "tags ................. ${{ steps.task_release_gh_meta .outputs.tags }}"
152
- echo "labels ............... ${{ steps.task_release_gh_meta .outputs.labels }}"
165
+ echo "tags ................. ${{ steps.task_release_gh_meta_root .outputs.tags }}"
166
+ echo "labels ............... ${{ steps.task_release_gh_meta_root .outputs.labels }}"
153
167
154
168
# #
155
- # Release > Github > Build and Push
169
+ # Release > Github > Build and Push > Pacakge (Root)
156
170
# #
157
171
158
- - name : " 📦 Build and push "
159
- id : task_release_gh_push
172
+ - name : " 📦 Build + Push › Root "
173
+ id : task_release_gh_push_root
160
174
uses : docker/build-push-action@v3
161
175
if : ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
162
176
with :
163
177
context : .
164
178
file : Dockerfile
165
179
platforms : linux/amd64
166
180
push : ${{ github.event_name != 'pull_request' }}
167
- tags : ${{ steps.task_release_gh_meta.outputs.tags }}
168
- labels : ${{ steps.task_release_gh_meta.outputs.labels }}
169
-
170
- # #
171
- # Job > Docker Release > Github
172
- # #
173
-
174
- docker-release-dockerhub :
175
- name : >-
176
- 📦 Release › Dockerhub
177
- runs-on : ubuntu-latest
178
- permissions :
179
- contents : read
180
- packages : write
181
- attestations : write
182
- id-token : write
183
- steps :
184
-
185
- # #
186
- # Release > Dockerhub > Start
187
- # #
188
-
189
- - name : " ✅ Start"
190
- id : task_release_dh_start
191
- run : |
192
- echo "Starting Github docker release"
193
-
194
- # #
195
- # Release > Dockerhub > Checkout
196
- # #
197
-
198
- - name : " ☑️ Checkout"
199
- id : task_release_dh_checkout
200
- uses : actions/checkout@v4
201
- with :
202
- fetch-depth : 0
203
-
204
- # #
205
- # Release > Dockerhub > QEMU
206
- # #
207
-
208
- - name : " ⚙️ Set up QEMU"
209
- id : task_release_dh_qemu
210
- uses : docker/setup-qemu-action@v3
211
-
212
- # #
213
- # Release > Dockerhub > Setup BuildX
214
- # #
215
-
216
- - name : " ⚙️ Setup Buildx"
217
- id : task_release_dh_buildx
218
- uses : docker/setup-buildx-action@v3
219
- with :
220
- version : latest
221
- driver-opts : ' image=moby/buildkit:v0.10.5'
181
+ tags : ${{ steps.task_release_gh_meta_root.outputs.tags }}
182
+ labels : ${{ steps.task_release_gh_meta_root.outputs.labels }}
222
183
223
184
# #
224
- # Release > Dockerhub > Registry Login
185
+ # Release > Github > Build and Push > Pacakge (PHP)
225
186
# #
226
187
227
- - name : " ⚙️ Login to DockerHub"
228
- id : task_release_dh_registry
229
- if : github.event_name != 'pull_request'
230
- uses : docker/login-action@v3
231
- with :
232
- username : aetherinox
233
- password : ${{ secrets.SELF_DOCKERHUB_TOKEN }}
234
-
235
- # #
236
- # Release > Dockerhub > Meta
237
- # #
238
-
239
- - name : " 🔨 Docker meta"
240
- id : task_release_dh_meta
241
- uses : docker/metadata-action@v5
242
- with :
243
- images : |
244
- aetherinox/thetvapp
245
- tags : |
246
- type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
247
- type=ref,event=tag
248
-
249
- # #
250
- # Release > Dockerhub > Debug
251
- # #
252
-
253
- - name : " 🪪 Debug › Print"
254
- id : task_release_dh_print
255
- run : |
256
- echo "registry ............. dockerhub"
257
- echo "github.actor.......... ${{ github.actor }}"
258
- echo "github.ref ........... ${{ github.ref }}"
259
- echo "github.event_name .... ${{ github.event_name }}"
260
- echo "tags ................. ${{ steps.task_release_dh_meta.outputs.tags }}"
261
- echo "labels ............... ${{ steps.task_release_dh_meta.outputs.labels }}"
262
-
263
- # #
264
- # Release > Dockerhub > Build and Push
265
- # #
266
-
267
- - name : " 📦 Build and push"
268
- id : task_release_dh_push
188
+ - name : " 📦 Build + Push › PHP"
189
+ id : task_release_gh_push_php
269
190
uses : docker/build-push-action@v3
270
191
if : ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
271
192
with :
272
193
context : .
273
- file : Dockerfile
194
+ file : Dockerfile-php.template
274
195
platforms : linux/amd64
275
196
push : ${{ github.event_name != 'pull_request' }}
276
- tags : ${{ steps.task_release_dh_meta .outputs.tags }}
277
- labels : ${{ steps.task_release_dh_meta .outputs.labels }}
197
+ tags : ${{ steps.task_release_gh_meta_php .outputs.tags }}
198
+ labels : ${{ steps.task_release_gh_meta_php .outputs.labels }}
0 commit comments