Add manual image build to CI/CD flow
All checks were successful
Docker Build and Push (Multi-architecture) / build-and-push (push) Successful in 24s

This commit is contained in:
2025-09-22 13:29:36 +00:00
parent 671e6553ea
commit c6590f008e

View File

@@ -1,6 +1,14 @@
name: Docker Build and Push (Multi-architecture) name: Docker Build and Push (Multi-architecture)
on: [push] on:
push:
workflow_dispatch:
inputs:
image_tag:
description: 'Custom tag for the Docker image'
required: true
default: 'latest'
type: string
jobs: jobs:
build-and-push: build-and-push:
@@ -37,5 +45,5 @@ jobs:
cache-from: type=registry,ref=${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:cache cache-from: type=registry,ref=${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:cache
cache-to: type=registry,ref=${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:cache,mode=max cache-to: type=registry,ref=${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:cache,mode=max
tags: | tags: |
${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:latest ${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:${{ github.event.inputs.image_tag || 'latest' }}
${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:${{ github.sha }} ${{ vars.REGISTRY }}/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}:${{ github.sha }}