mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05: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
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"
|
||||
required: false
|
||||
default: "ghcr.io"
|
||||
pseudoVersion:
|
||||
description: "Check if pseudo-version should be generated"
|
||||
default: "false"
|
||||
required: true
|
||||
koConfig:
|
||||
description: "Path to the .ko.yaml config file"
|
||||
required: false
|
||||
@ -46,7 +42,7 @@ runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Determine pseudo version
|
||||
if: inputs.pseudoVersion == 'true'
|
||||
if: ${{ !inputs.pushTag}}
|
||||
id: pseudo-version
|
||||
uses: ./.github/actions/pseudo_version
|
||||
|
||||
|
@ -8,10 +8,6 @@ inputs:
|
||||
description: "Path to the .ko.yaml config file"
|
||||
default: ".ko.yaml"
|
||||
required: false
|
||||
pseudoVersion:
|
||||
description: "Check if pseudo-version should be generated"
|
||||
default: "false"
|
||||
required: true
|
||||
koTarget:
|
||||
description: "Go package to build with ko"
|
||||
required: true
|
||||
@ -39,18 +35,11 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Determine pseudo version
|
||||
if: inputs.pseudoVersion == 'true'
|
||||
uses: ./.github/actions/pseudo_version
|
||||
with:
|
||||
constellationPath: ${{ inputs.constellationPath }}
|
||||
|
||||
- name: Build and upload container image
|
||||
id: build-and-upload
|
||||
uses: ./.github/actions/build_ko
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
pseudoVersion: ${{ inputs.pseudoVersion }}
|
||||
koConfig: ${{ inputs.koConfig }}
|
||||
koTarget: ${{ inputs.koTarget }}
|
||||
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 }}
|
||||
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:
|
||||
name: Update container image versions
|
||||
needs: [verify-inputs, micro-services]
|
||||
|
Loading…
Reference in New Issue
Block a user