mirror of
https://github.com/anchore/syft.git
synced 2025-11-19 01:13:18 +01:00
chore: options to run release-install-script without release (#4377)
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
parent
a033ae525f
commit
7014cb023f
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
@ -9,11 +9,20 @@ on:
|
|||||||
version:
|
version:
|
||||||
description: tag the latest commit on main with the given version (prefixed with v)
|
description: tag the latest commit on main with the given version (prefixed with v)
|
||||||
required: true
|
required: true
|
||||||
|
phase:
|
||||||
|
description: the specific workflow phase to run or all
|
||||||
|
required: true
|
||||||
|
default: "all"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- "all"
|
||||||
|
- "install-script-only"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality-gate:
|
quality-gate:
|
||||||
environment: release
|
environment: release
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
if: ${{ github.event.inputs.phase == 'all' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
|
||||||
with:
|
with:
|
||||||
@ -120,6 +129,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
needs: [quality-gate]
|
needs: [quality-gate]
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
if: ${{ github.event.inputs.phase == 'all' }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
@ -189,7 +199,7 @@ jobs:
|
|||||||
|
|
||||||
release-install-script:
|
release-install-script:
|
||||||
needs: [release]
|
needs: [release]
|
||||||
if: ${{ needs.release.result == 'success' }}
|
if: ${{ always() && (needs.release.result == 'success' || github.event.inputs.phase == 'install-script-only') }}
|
||||||
uses: "anchore/workflows/.github/workflows/release-install-script.yaml@main"
|
uses: "anchore/workflows/.github/workflows/release-install-script.yaml@main"
|
||||||
with:
|
with:
|
||||||
tag: ${{ github.event.inputs.version }}
|
tag: ${{ github.event.inputs.version }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user