mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-29 18:18:41 -04:00
ci: adjust tags in build_ko
Currently tags can be empty when building a ko image. However, --bare may not work in case --tags is empty, as per ko docs. Also remove redundant build step in release pipeline. Co-authored-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
b21393ddb1
commit
88e3da750e
3 changed files with 1 additions and 29 deletions
6
.github/actions/build_ko/action.yml
vendored
6
.github/actions/build_ko/action.yml
vendored
|
@ -8,10 +8,6 @@ inputs:
|
||||||
description: "Name of the registry to use"
|
description: "Name of the registry to use"
|
||||||
required: false
|
required: false
|
||||||
default: "ghcr.io"
|
default: "ghcr.io"
|
||||||
pseudoVersion:
|
|
||||||
description: "Check if pseudo-version should be generated"
|
|
||||||
default: "false"
|
|
||||||
required: true
|
|
||||||
koConfig:
|
koConfig:
|
||||||
description: "Path to the .ko.yaml config file"
|
description: "Path to the .ko.yaml config file"
|
||||||
required: false
|
required: false
|
||||||
|
@ -46,7 +42,7 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Determine pseudo version
|
- name: Determine pseudo version
|
||||||
if: inputs.pseudoVersion == 'true'
|
if: ${{ !inputs.pushTag}}
|
||||||
id: pseudo-version
|
id: pseudo-version
|
||||||
uses: ./.github/actions/pseudo_version
|
uses: ./.github/actions/pseudo_version
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,6 @@ inputs:
|
||||||
description: "Path to the .ko.yaml config file"
|
description: "Path to the .ko.yaml config file"
|
||||||
default: ".ko.yaml"
|
default: ".ko.yaml"
|
||||||
required: false
|
required: false
|
||||||
pseudoVersion:
|
|
||||||
description: "Check if pseudo-version should be generated"
|
|
||||||
default: "false"
|
|
||||||
required: true
|
|
||||||
koTarget:
|
koTarget:
|
||||||
description: "Go package to build with ko"
|
description: "Go package to build with ko"
|
||||||
required: true
|
required: true
|
||||||
|
@ -39,18 +35,11 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Determine pseudo version
|
|
||||||
if: inputs.pseudoVersion == 'true'
|
|
||||||
uses: ./.github/actions/pseudo_version
|
|
||||||
with:
|
|
||||||
constellationPath: ${{ inputs.constellationPath }}
|
|
||||||
|
|
||||||
- name: Build and upload container image
|
- name: Build and upload container image
|
||||||
id: build-and-upload
|
id: build-and-upload
|
||||||
uses: ./.github/actions/build_ko
|
uses: ./.github/actions/build_ko
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.name }}
|
name: ${{ inputs.name }}
|
||||||
pseudoVersion: ${{ inputs.pseudoVersion }}
|
|
||||||
koConfig: ${{ inputs.koConfig }}
|
koConfig: ${{ inputs.koConfig }}
|
||||||
koTarget: ${{ inputs.koTarget }}
|
koTarget: ${{ inputs.koTarget }}
|
||||||
pushTag: ${{ inputs.pushTag }}
|
pushTag: ${{ inputs.pushTag }}
|
||||||
|
|
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
@ -163,19 +163,6 @@ jobs:
|
||||||
ref: ${{ needs.verify-inputs.outputs.RELEASE_BRANCH }}
|
ref: ${{ needs.verify-inputs.outputs.RELEASE_BRANCH }}
|
||||||
release: true
|
release: true
|
||||||
|
|
||||||
constellation-node-operator:
|
|
||||||
name: Build Constellation node-operator
|
|
||||||
needs: [verify-inputs, prepare-release-branch]
|
|
||||||
secrets: inherit
|
|
||||||
uses: ./.github/workflows/build-operator-manual.yml
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
with:
|
|
||||||
imageTag: ${{ inputs.version }}
|
|
||||||
ref: ${{ needs.verify-inputs.outputs.RELEASE_BRANCH }}
|
|
||||||
release: true
|
|
||||||
|
|
||||||
update-versions:
|
update-versions:
|
||||||
name: Update container image versions
|
name: Update container image versions
|
||||||
needs: [verify-inputs, micro-services]
|
needs: [verify-inputs, micro-services]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue