From d6dabe263b7681b4281c390a9f6dc1edc2e6f258 Mon Sep 17 00:00:00 2001 From: Giles Westwood Date: Mon, 25 Nov 2024 14:21:55 +0000 Subject: [PATCH] make docker push optional --- .github/workflows/bld_docker.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bld_docker.yml b/.github/workflows/bld_docker.yml index bf7ed6bb6..be6fd1cab 100644 --- a/.github/workflows/bld_docker.yml +++ b/.github/workflows/bld_docker.yml @@ -44,6 +44,11 @@ on: required: false default: "default" type: string + push: + description: 'Select to push to docker registry' + required: false + default: true + type: boolean workflow_dispatch: inputs: @@ -82,7 +87,11 @@ on: required: false default: "default" type: string - + push: + description: 'Select to push to docker registry' + required: false + default: true + type: boolean jobs: bld_docker: @@ -161,7 +170,7 @@ jobs: - uses: docker/build-push-action@v6 with: - push: true + push: ${{ inputs.push }} tags: ${{ secrets.DOCKER_REG_PRIVATE }}/${{ matrix.docker_name}}:${{ steps.version.outputs.version_tag_numeric }} context: ${{ inputs.context }} cache-from: type=registry,ref=${{ secrets.DOCKER_REG_PRIVATE }}/${{ matrix.docker_name }}:cache