mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 09:15:41 -04:00
ci: update workflow
This commit is contained in:
141
.github/workflows/deploy-docker.yml
vendored
141
.github/workflows/deploy-docker.yml
vendored
@@ -124,11 +124,11 @@ jobs:
|
|||||||
password: ${{ secrets.SELF_TOKEN_CL }}
|
password: ${{ secrets.SELF_TOKEN_CL }}
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Release > Github > Meta
|
# Release > Github > Meta > Package - Root
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: "🔨 Docker meta"
|
- name: "🔨 Docker Meta › Root"
|
||||||
id: task_release_gh_meta
|
id: task_release_gh_meta_root
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
@@ -137,6 +137,20 @@ jobs:
|
|||||||
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
|
type=raw,value=latest,enable=${{ endsWith(github.ref, 'main') }}
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
|
|
||||||
|
# #
|
||||||
|
# Release > Github > Meta > Package - PHP
|
||||||
|
# #
|
||||||
|
|
||||||
|
- name: "🔨 Docker Meta › PHP"
|
||||||
|
id: task_release_gh_meta_php
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
ghcr.io/Aetherinox/thetvapp-docker
|
||||||
|
tags: |
|
||||||
|
type=ref,enable=true,priority=600,prefix=,suffix=-php,event=tag
|
||||||
|
type=ref,event=tag
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Release > Github > Debug
|
# Release > Github > Debug
|
||||||
# #
|
# #
|
||||||
@@ -144,19 +158,19 @@ jobs:
|
|||||||
- name: "🪪 Debug › Print"
|
- name: "🪪 Debug › Print"
|
||||||
id: task_release_gh_print
|
id: task_release_gh_print
|
||||||
run: |
|
run: |
|
||||||
echo "registry ............. github"
|
echo "registry ............. Github"
|
||||||
echo "github.actor.......... ${{ github.actor }}"
|
echo "github.actor.......... ${{ github.actor }}"
|
||||||
echo "github.ref ........... ${{ github.ref }}"
|
echo "github.ref ........... ${{ github.ref }}"
|
||||||
echo "github.event_name .... ${{ github.event_name }}"
|
echo "github.event_name .... ${{ github.event_name }}"
|
||||||
echo "tags ................. ${{ steps.task_release_gh_meta.outputs.tags }}"
|
echo "tags ................. ${{ steps.task_release_gh_meta_root.outputs.tags }}"
|
||||||
echo "labels ............... ${{ steps.task_release_gh_meta.outputs.labels }}"
|
echo "labels ............... ${{ steps.task_release_gh_meta_root.outputs.labels }}"
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Release > Github > Build and Push
|
# Release > Github > Build and Push > Pacakge (Root)
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: "📦 Build and push"
|
- name: "📦 Build + Push › Root"
|
||||||
id: task_release_gh_push
|
id: task_release_gh_push_root
|
||||||
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' )
|
||||||
with:
|
with:
|
||||||
@@ -164,114 +178,21 @@ jobs:
|
|||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.task_release_gh_meta.outputs.tags }}
|
tags: ${{ steps.task_release_gh_meta_root.outputs.tags }}
|
||||||
labels: ${{ steps.task_release_gh_meta.outputs.labels }}
|
labels: ${{ steps.task_release_gh_meta_root.outputs.labels }}
|
||||||
|
|
||||||
# #
|
|
||||||
# Job > Docker Release > Github
|
|
||||||
# #
|
|
||||||
|
|
||||||
docker-release-dockerhub:
|
|
||||||
name: >-
|
|
||||||
📦 Release › Dockerhub
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
attestations: write
|
|
||||||
id-token: write
|
|
||||||
steps:
|
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Release > Dockerhub > Start
|
# Release > Github > Build and Push > Pacakge (PHP)
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: "✅ Start"
|
- name: "📦 Build + Push › PHP"
|
||||||
id: task_release_dh_start
|
id: task_release_gh_push_php
|
||||||
run: |
|
|
||||||
echo "Starting Github docker release"
|
|
||||||
|
|
||||||
# #
|
|
||||||
# Release > Dockerhub > Checkout
|
|
||||||
# #
|
|
||||||
|
|
||||||
- name: "☑️ Checkout"
|
|
||||||
id: task_release_dh_checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
# #
|
|
||||||
# Release > Dockerhub > QEMU
|
|
||||||
# #
|
|
||||||
|
|
||||||
- name: "⚙️ Set up QEMU"
|
|
||||||
id: task_release_dh_qemu
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
# #
|
|
||||||
# Release > Dockerhub > Setup BuildX
|
|
||||||
# #
|
|
||||||
|
|
||||||
- name: "⚙️ Setup Buildx"
|
|
||||||
id: task_release_dh_buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
driver-opts: 'image=moby/buildkit:v0.10.5'
|
|
||||||
|
|
||||||
# #
|
|
||||||
# Release > Dockerhub > Registry Login
|
|
||||||
# #
|
|
||||||
|
|
||||||
- name: "⚙️ Login to DockerHub"
|
|
||||||
id: task_release_dh_registry
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
username: aetherinox
|
|
||||||
password: ${{ secrets.SELF_DOCKERHUB_TOKEN }}
|
|
||||||
|
|
||||||
# #
|
|
||||||
# Release > Dockerhub > Meta
|
|
||||||
# #
|
|
||||||
|
|
||||||
- name: "🔨 Docker meta"
|
|
||||||
id: task_release_dh_meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
aetherinox/thetvapp
|
|
||||||
tags: |
|
|
||||||
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
|
|
||||||
# #
|
|
||||||
|
|
||||||
- name: "📦 Build and 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' )
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: Dockerfile-php.template
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.task_release_dh_meta.outputs.tags }}
|
tags: ${{ steps.task_release_gh_meta_php.outputs.tags }}
|
||||||
labels: ${{ steps.task_release_dh_meta.outputs.labels }}
|
labels: ${{ steps.task_release_gh_meta_php.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user