Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .ci/pipeline_definitions

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build

on:
workflow_call:
inputs:
mode:
required: true
type: string
default: snapshot
description: |
the mode to use. either `snapshot` or `release`. Will affect effective version, as well
as target-oci-registry.

jobs:
prepare:
uses: gardener/cc-utils/.github/workflows/prepare.yaml@master
permissions:
contents: read
with:
mode: ${{ inputs.mode }}

oci-images:
name: Build OCI-Images
uses: gardener/cc-utils/.github/workflows/oci-ocm.yaml@master
needs:
- prepare
permissions:
contents: read
packages: write
id-token: write
with:
name: signing-server
version: ${{ needs.prepare.outputs.version }}
oci-registry: ${{ needs.prepare.outputs.oci-registry }}
oci-repository: cicd/signing-server
oci-platforms: linux/amd64
ctx: oci-images

helmcharts:
name: Build Helmcharts
uses: gardener/cc-utils/.github/workflows/helmchart-ocm.yaml@master
needs:
- prepare
- oci-images
permissions:
contents: read
packages: write
id-token: write
with:
name: signing-server
dir: chart
oci-registry: ${{ needs.prepare.outputs.oci-registry }}
oci-repository: cicd/charts
ocm-mappings: |
- ref: ocm-resource:signing-server.repository
attribute: image.repository
- ref: ocm-resource:signing-server.tag
attribute: image.tag
24 changes: 24 additions & 0 deletions .github/workflows/non-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI (non-release)
on:
push:
workflow_dispatch:

jobs:
build:
uses: ./.github/workflows/build.yaml
secrets: inherit
permissions:
contents: read
packages: write
id-token: write
with:
mode: snapshot

component-descriptor:
uses: gardener/cc-utils/.github/workflows/post-build.yaml@master
needs:
- build
secrets: inherit
permissions:
contents: write
id-token: write
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release
on:
workflow_dispatch:
inputs:
next-version:
type: choice
options:
- bump-minor
- bump-patch

jobs:
build:
uses: ./.github/workflows/build.yaml
secrets: inherit
permissions:
contents: read
packages: write
id-token: write
with:
mode: release

release-to-github-and-bump:
uses: gardener/cc-utils/.github/workflows/release.yaml@master
needs:
- build
secrets: inherit
permissions:
contents: write
packages: write
id-token: write
with:
release-commit-target: branch
next-version: ${{ inputs.next-version }}
1 change: 1 addition & 0 deletions .ocm/base-component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: ocm.software/signing-server
Loading