Skip to content

Commit

Permalink
make docker push optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed Nov 25, 2024
1 parent 7387bf6 commit d6dabe2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/bld_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d6dabe2

Please sign in to comment.