mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-05 21:44:15 -04:00
fix azure release image naming
This commit is contained in:
parent
2d8f2af91b
commit
c1427123d9
2 changed files with 7 additions and 4 deletions
2
.github/docs/release.md
vendored
2
.github/docs/release.md
vendored
|
@ -38,7 +38,7 @@ This checklist will prepare `v1.3.0` from `v1.2.0`. Adjust your version numbers
|
||||||
6. Update versions [versions.go](../../internal/versions/versions.go#L33-L39) to `v1.3.0` and **push your changes**.
|
6. Update versions [versions.go](../../internal/versions/versions.go#L33-L39) to `v1.3.0` and **push your changes**.
|
||||||
7. Create a [production coreOS image](/.github/workflows/build-coreos.yml)
|
7. Create a [production coreOS image](/.github/workflows/build-coreos.yml)
|
||||||
```sh
|
```sh
|
||||||
gh workflow run build-coreos.yml --ref release/v1.3 -F debug=false -F coreOSConfigBranch=release/v1.3
|
gh workflow run build-coreos.yml --ref release/v1.3 -F debug=false -F coreOSConfigBranch=release/v1.3 -F imageVersion=v1.3.0
|
||||||
```
|
```
|
||||||
8. Update [default images in config](/internal/config/images_enterprise.go)
|
8. Update [default images in config](/internal/config/images_enterprise.go)
|
||||||
9. Run E2E tests to confirm stability and [generate measurements](/.github/workflows/e2e-test-manual.yml)
|
9. Run E2E tests to confirm stability and [generate measurements](/.github/workflows/e2e-test-manual.yml)
|
||||||
|
|
9
.github/workflows/build-coreos.yml
vendored
9
.github/workflows/build-coreos.yml
vendored
|
@ -6,6 +6,9 @@ on:
|
||||||
description: "Branch of CoreOS config repo to build from"
|
description: "Branch of CoreOS config repo to build from"
|
||||||
default: "main"
|
default: "main"
|
||||||
required: false
|
required: false
|
||||||
|
imageVersion:
|
||||||
|
description: "Semantic version including patch e.g. v<major>.<minor>.<patch> (only used for releases)"
|
||||||
|
required: false
|
||||||
debug:
|
debug:
|
||||||
description: "Build debug image"
|
description: "Build debug image"
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -87,16 +90,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
timestamp=${{ steps.version.outputs.timestamp }}
|
timestamp=${{ steps.version.outputs.timestamp }}
|
||||||
semver=${{ steps.version.outputs.semanticVersion }}
|
semver=${{ steps.version.outputs.semanticVersion }}
|
||||||
releaseVersion=${{ steps.version.outputs.releaseVersion }}
|
imageVersion=${{ inputs.imageVersion }}
|
||||||
pseudover=${{ steps.version.outputs.pseudoVersion }}
|
pseudover=${{ steps.version.outputs.pseudoVersion }}
|
||||||
echo "azureImageName=constellation-${pseudover//./-}" >> $GITHUB_ENV
|
echo "azureImageName=constellation-${pseudover//./-}" >> $GITHUB_ENV
|
||||||
if [ "${{ startsWith(github.ref, 'refs/heads/release/') && (inputs.debug == false) }}" = true ]
|
if [ "${{ startsWith(github.ref, 'refs/heads/release/') && (inputs.debug == false) }}" = true ]
|
||||||
then
|
then
|
||||||
echo "gcpImageName=constellation-${releaseVersion//./-}" >> $GITHUB_ENV
|
echo "gcpImageName=constellation-${imageVersion//./-}" >> $GITHUB_ENV
|
||||||
echo "gcpImageFamily=constellation" >> $GITHUB_ENV
|
echo "gcpImageFamily=constellation" >> $GITHUB_ENV
|
||||||
echo "azureGalleryName=Constellation" >> $GITHUB_ENV
|
echo "azureGalleryName=Constellation" >> $GITHUB_ENV
|
||||||
echo "azureImageDefinition=constellation" >> $GITHUB_ENV
|
echo "azureImageDefinition=constellation" >> $GITHUB_ENV
|
||||||
echo "azureImageVersion=${releaseVersion:1}" >> $GITHUB_ENV
|
echo "azureImageVersion=${imageVersion: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-${{ steps.version.outputs.timestamp }}" >> $GITHUB_ENV
|
echo "gcpImageName=constellation-${{ steps.version.outputs.timestamp }}" >> $GITHUB_ENV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue