push is optional now
This commit is contained in:
@@ -30,6 +30,12 @@ inputs:
|
|||||||
Example: "ACT_RUNNER_VERSION=0.2.11"
|
Example: "ACT_RUNNER_VERSION=0.2.11"
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
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:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -50,6 +56,7 @@ runs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- id: login
|
- id: login
|
||||||
|
if: ${{ inputs.push != 'false' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -94,7 +101,8 @@ runs:
|
|||||||
build_cmd+=("${{ inputs.context }}")
|
build_cmd+=("${{ inputs.context }}")
|
||||||
"${build_cmd[@]}"
|
"${build_cmd[@]}"
|
||||||
|
|
||||||
- id: push
|
- if: ${{ inputs.push != 'false' }}
|
||||||
|
id: push
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
Reference in New Issue
Block a user