mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 08:35:41 -04:00
change: add two versions, php and non-php
This commit is contained in:
53
.github/workflows/deploy-docker.yml
vendored
53
.github/workflows/deploy-docker.yml
vendored
@@ -13,7 +13,28 @@ run-name: "⚙️ Deploy › Docker"
|
||||
# #
|
||||
|
||||
on:
|
||||
|
||||
# #
|
||||
# Trigger > Workflow Dispatch
|
||||
# #
|
||||
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
|
||||
# #
|
||||
# true: runs all actions, even ones not scheduled
|
||||
# false: only scheduled tasks will run
|
||||
# #
|
||||
|
||||
PRINT_ONLY:
|
||||
description: "📑 Print Debugs Only"
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
# #
|
||||
# Trigger > Push
|
||||
# #
|
||||
|
||||
push:
|
||||
tags:
|
||||
@@ -116,6 +137,20 @@ jobs:
|
||||
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
|
||||
type=ref,event=tag
|
||||
|
||||
# #
|
||||
# Release > Github > Debug
|
||||
# #
|
||||
|
||||
- name: "🪪 Debug › Print"
|
||||
id: task_release_gh_print
|
||||
run: |
|
||||
echo "registry ............. github"
|
||||
echo "github.actor.......... ${{ github.actor }}"
|
||||
echo "github.ref ........... ${{ github.ref }}"
|
||||
echo "github.event_name .... ${{ github.event_name }}"
|
||||
echo "tags ................. ${{ steps.task_release_gh_meta.outputs.tags }}"
|
||||
echo "labels ............... ${{ steps.task_release_gh_meta.outputs.labels }}"
|
||||
|
||||
# #
|
||||
# Release > Github > Build and Push
|
||||
# #
|
||||
@@ -123,8 +158,10 @@ jobs:
|
||||
- name: "📦 Build and push"
|
||||
id: task_release_gh_push
|
||||
uses: docker/build-push-action@v3
|
||||
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.task_release_gh_meta.outputs.tags }}
|
||||
@@ -209,6 +246,20 @@ jobs:
|
||||
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
|
||||
type=ref,event=tag
|
||||
|
||||
# #
|
||||
# Release > Dockerhub > Debug
|
||||
# #
|
||||
|
||||
- name: "🪪 Debug › Print"
|
||||
id: task_release_dh_print
|
||||
run: |
|
||||
echo "registry ............. dockerhub"
|
||||
echo "github.actor.......... ${{ github.actor }}"
|
||||
echo "github.ref ........... ${{ github.ref }}"
|
||||
echo "github.event_name .... ${{ github.event_name }}"
|
||||
echo "tags ................. ${{ steps.task_release_dh_meta.outputs.tags }}"
|
||||
echo "labels ............... ${{ steps.task_release_dh_meta.outputs.labels }}"
|
||||
|
||||
# #
|
||||
# Release > Dockerhub > Build and Push
|
||||
# #
|
||||
@@ -216,8 +267,10 @@ jobs:
|
||||
- name: "📦 Build and push"
|
||||
id: task_release_dh_push
|
||||
uses: docker/build-push-action@v3
|
||||
if: ( github.event_name == 'workflow_dispatch' && inputs.PRINT_ONLY == 'false' )
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.task_release_dh_meta.outputs.tags }}
|
||||
|
||||
Reference in New Issue
Block a user