diff --git a/.gitea/actions/docker-build-push/action.yaml b/.gitea/actions/docker-build-push/action.yaml index 290790f..3222055 100644 --- a/.gitea/actions/docker-build-push/action.yaml +++ b/.gitea/actions/docker-build-push/action.yaml @@ -17,6 +17,13 @@ inputs: description: 'Build context path' required: false default: '.' + push: + description: 'Whether to push the image' + required: false + default: 'true' + outputs: + description: 'Custom outputs configuration' + required: false runs: using: "composite" @@ -41,6 +48,7 @@ runs: context: ${{ inputs.context }} file: ${{ inputs.file }} platforms: ${{ inputs.platforms }} - push: true + push: ${{ inputs.outputs == '' && inputs.push == 'true' || false }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + outputs: ${{ inputs.outputs }} diff --git a/.gitea/workflows/docker-publish-private.yaml b/.gitea/workflows/docker-publish-private.yaml index d6806e8..97800ae 100644 --- a/.gitea/workflows/docker-publish-private.yaml +++ b/.gitea/workflows/docker-publish-private.yaml @@ -45,3 +45,4 @@ jobs: file: ${{ inputs.file }} platforms: ${{ inputs.platforms }} context: . + outputs: type=image,registry.insecure=true,push=true