ci: enable docker image push

This commit is contained in:
2024-12-01 12:18:26 -07:00
parent fcc7ae6ac6
commit 780aa4e3c8
2 changed files with 9 additions and 7 deletions

View File

@@ -158,7 +158,7 @@ jobs:
- name: "📦 Build and push" - name: "📦 Build and push"
id: task_release_gh_push id: task_release_gh_push
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
with: with:
context: . context: .
file: Dockerfile file: Dockerfile
@@ -267,7 +267,7 @@ jobs:
- name: "📦 Build and push" - name: "📦 Build and push"
id: task_release_dh_push id: task_release_dh_push
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
with: with:
context: . context: .
file: Dockerfile file: Dockerfile

View File

@@ -131,11 +131,13 @@ jobs:
id: task_release_gh_meta id: task_release_gh_meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
flavor: |
latest=false
images: | images: |
ghcr.io/Aetherinox/thetvapp-docker aetherinox/thetvapp
tags: | tags: |
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }} type=raw,value=latest,enable=false
type=ref,event=tag type=ref,enable=true,priority=600,prefix=,suffix=-php,event=tag
# # # #
# Release > Github > Debug # Release > Github > Debug
@@ -158,7 +160,7 @@ jobs:
- name: "📦 Build and push" - name: "📦 Build and push"
id: task_release_gh_push id: task_release_gh_push
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
with: with:
context: . context: .
file: Dockerfile-php.template file: Dockerfile-php.template
@@ -269,7 +271,7 @@ jobs:
- name: "📦 Build and push" - name: "📦 Build and push"
id: task_release_dh_push id: task_release_dh_push
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' ) || ( github.event_name == 'push' )
with: with:
context: . context: .
file: Dockerfile-php.template file: Dockerfile-php.template