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