diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 0e99d24..70ce57a 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -1,6 +1,14 @@ 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: build-and-push: @@ -37,5 +45,5 @@ jobs: 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 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 }} \ No newline at end of file