Skip to content

Commit 780aa4e

Browse files
committed
ci: enable docker image push
1 parent fcc7ae6 commit 780aa4e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/deploy-docker-main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
- name: "📦 Build and push"
159159
id: task_release_gh_push
160160
uses: docker/build-push-action@v3
161-
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
161+
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
162162
with:
163163
context: .
164164
file: Dockerfile
@@ -267,7 +267,7 @@ jobs:
267267
- name: "📦 Build and push"
268268
id: task_release_dh_push
269269
uses: docker/build-push-action@v3
270-
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
270+
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
271271
with:
272272
context: .
273273
file: Dockerfile

.github/workflows/deploy-docker-php.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,13 @@ jobs:
131131
id: task_release_gh_meta
132132
uses: docker/metadata-action@v5
133133
with:
134+
flavor: |
135+
latest=false
134136
images: |
135-
ghcr.io/Aetherinox/thetvapp-docker
137+
aetherinox/thetvapp
136138
tags: |
137-
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
138-
type=ref,event=tag
139+
type=raw,value=latest,enable=false
140+
type=ref,enable=true,priority=600,prefix=,suffix=-php,event=tag
139141
140142
# #
141143
# Release > Github > Debug
@@ -158,7 +160,7 @@ jobs:
158160
- name: "📦 Build and push"
159161
id: task_release_gh_push
160162
uses: docker/build-push-action@v3
161-
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
163+
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
162164
with:
163165
context: .
164166
file: Dockerfile-php.template
@@ -269,7 +271,7 @@ jobs:
269271
- name: "📦 Build and push"
270272
id: task_release_dh_push
271273
uses: docker/build-push-action@v3
272-
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
274+
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
273275
with:
274276
context: .
275277
file: Dockerfile-php.template

0 commit comments

Comments
 (0)