push is optional now
This commit is contained in:
@@ -30,6 +30,12 @@ inputs:
|
||||
Example: "ACT_RUNNER_VERSION=0.2.11"
|
||||
required: false
|
||||
default: ""
|
||||
push:
|
||||
description: |
|
||||
Whether to push tags to the registry after build.
|
||||
Set to "false" for build-only verification workflows.
|
||||
required: false
|
||||
default: "true"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -50,6 +56,7 @@ runs:
|
||||
fi
|
||||
|
||||
- id: login
|
||||
if: ${{ inputs.push != 'false' }}
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -94,7 +101,8 @@ runs:
|
||||
build_cmd+=("${{ inputs.context }}")
|
||||
"${build_cmd[@]}"
|
||||
|
||||
- id: push
|
||||
- if: ${{ inputs.push != 'false' }}
|
||||
id: push
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
Reference in New Issue
Block a user