Remove "debug" from gcp image name.

Debug already is part of the family name.
This commit is contained in:
Otto Bittner 2022-08-05 15:16:00 +02:00
parent bf5816cc00
commit 6ef0f5d06b

View File

@ -3,18 +3,18 @@ on:
workflow_dispatch:
inputs:
coreOSConfigBranch:
description: 'Branch of CoreOS config repo to build from'
default: 'constellation'
description: "Branch of CoreOS config repo to build from"
default: "constellation"
required: false
debug:
description: 'Build debug image'
description: "Build debug image"
type: boolean
default: false
required: true
jobs:
build-coreos-image:
name: 'Build CoreOS using customized COSA'
name: "Build CoreOS using customized COSA"
runs-on: [self-hosted, linux, nested-virt]
permissions:
contents: read
@ -99,7 +99,7 @@ jobs:
echo "azureImageVersion=${semver:1}" >> $GITHUB_ENV
elif [ "${{ ((github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/heads/release/')) && (inputs.debug == true) }}" = true ]
then
echo "gcpImageName=constellation-debug-${{ steps.version.outputs.timestamp }}" >> $GITHUB_ENV
echo "gcpImageName=constellation-${{ steps.version.outputs.timestamp }}" >> $GITHUB_ENV
echo "gcpImageFamily=constellation-debug-${semver//./-}" >> $GITHUB_ENV
echo "azureGalleryName=Constellation_Debug" >> $GITHUB_ENV
echo "azureImageDefinition=${semver}" >> $GITHUB_ENV