Skip to content

Commit 58eb19d

Browse files
committed
ci: update workflow
1 parent 3f9f861 commit 58eb19d

File tree

1 file changed

+31
-110
lines changed

1 file changed

+31
-110
lines changed

.github/workflows/deploy-docker.yml

+31-110
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ jobs:
124124
password: ${{ secrets.SELF_TOKEN_CL }}
125125

126126
# #
127-
# Release > Github > Meta
127+
# Release > Github > Meta > Package - Root
128128
# #
129129

130-
- name: "🔨 Docker meta"
131-
id: task_release_gh_meta
130+
- name: "🔨 Docker Meta › Root"
131+
id: task_release_gh_meta_root
132132
uses: docker/metadata-action@v5
133133
with:
134134
images: |
@@ -137,141 +137,62 @@ jobs:
137137
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
138138
type=ref,event=tag
139139
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+
140154
# #
141155
# Release > Github > Debug
142156
# #
143157

144158
- name: "🪪 Debug › Print"
145159
id: task_release_gh_print
146160
run: |
147-
echo "registry ............. github"
161+
echo "registry ............. Github"
148162
echo "github.actor.......... ${{ github.actor }}"
149163
echo "github.ref ........... ${{ github.ref }}"
150164
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 }}"
153167
154168
# #
155-
# Release > Github > Build and Push
169+
# Release > Github > Build and Push > Pacakge (Root)
156170
# #
157171

158-
- name: "📦 Build and push"
159-
id: task_release_gh_push
172+
- name: "📦 Build + Push › Root"
173+
id: task_release_gh_push_root
160174
uses: docker/build-push-action@v3
161175
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
162176
with:
163177
context: .
164178
file: Dockerfile
165179
platforms: linux/amd64
166180
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 }}
222183

223184
# #
224-
# Release > Dockerhub > Registry Login
185+
# Release > Github > Build and Push > Pacakge (PHP)
225186
# #
226187

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
269190
uses: docker/build-push-action@v3
270191
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
271192
with:
272193
context: .
273-
file: Dockerfile
194+
file: Dockerfile-php.template
274195
platforms: linux/amd64
275196
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

Comments
 (0)