ci: remove residual references to "kms"

This commit is contained in:
Otto Bittner 2023-01-16 12:17:54 +01:00
parent 0b0e0ba46a
commit 4239191b0d
3 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
name: Build and upload KMS image (KO)
name: Build and upload KeyService image (KO)
env:
REGISTRY: ghcr.io
@ -10,7 +10,7 @@ on:
- "release/**"
jobs:
build-kms-server:
build-keyservice:
runs-on: ubuntu-22.04
permissions:
contents: read
@ -30,13 +30,13 @@ jobs:
- name: Set up ko
uses: imjasonh/setup-ko@9a31684920a610d5dbe8012888714d64706f9787 # tag=v0.6
- name: Build and upload KMS server container image
- name: Build and upload KeyService container image
id: build-and-upload
uses: ./.github/actions/build_micro_service_ko
with:
name: kmsserver
name: keyservice
koConfig: .ko.yaml
koTarget: ./kms/cmd
koTarget: ./keyservice/cmd
githubToken: ${{ secrets.GITHUB_TOKEN }}
cosignPublicKey: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PUBLIC_KEY || secrets.COSIGN_DEV_PUBLIC_KEY }}
cosignPrivateKey: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PRIVATE_KEY || secrets.COSIGN_DEV_PRIVATE_KEY }}

View File

@ -128,7 +128,7 @@ jobs:
strategy:
matrix:
service:
[join-service, kmsserver, verification-service, qemu-metadata-api]
[join-service, keyservice, verification-service, qemu-metadata-api]
with:
microService: ${{ matrix.service }}
imageTag: ${{ inputs.version }}
@ -174,7 +174,7 @@ jobs:
- name: Update Helm Charts
run: |
yq eval -i ".version = \"${WITHOUT_V}\"" cli/internal/helm/charts/edgeless/constellation-services/Chart.yaml
for service in kms join-service ccm cnm autoscaler verification-service konnectivity gcp-guest-agent; do
for service in keyservice join-service ccm cnm autoscaler verification-service konnectivity gcp-guest-agent; do
yq eval -i "(.dependencies[] | select(.name == \"${service}\")).version = \"${WITHOUT_V}\"" cli/internal/helm/charts/edgeless/constellation-services/Chart.yaml
yq eval -i ".version = \"${WITHOUT_V}\"" "cli/internal/helm/charts/edgeless/constellation-services/charts/${service}/Chart.yaml"
git add "cli/internal/helm/charts/edgeless/constellation-services/charts/${service}/Chart.yaml"
@ -190,7 +190,7 @@ jobs:
- name: Update micro service versions
run: |
for service in node-operator join-service kmsserver verification-service qemu-metadata-api; do
for service in node-operator join-service keyservice verification-service qemu-metadata-api; do
name=ghcr.io/edgelesssys/constellation/${service}
digest=$(crane digest "${name}:${VERSION}")
sed -i "s#\"${name}:v[0-9]\+\.[0-9]\+\.[0-9]\+[^@]*@sha256:[0-9a-f]\+\"#\"${name}:${VERSION}@${digest}\"#" internal/versions/versions.go

View File

@ -5,9 +5,9 @@ baseImageOverrides:
github.com/edgelesssys/constellation/v2/hack/qemu-metadata-api: ghcr.io/edgelesssys/apko-alpine-qemu-metadata-api
builds:
- id: kms
- id: keyservice
dir: .
main: ./kms/cmd
main: ./keyservice/cmd
env:
- CGO_ENABLED=0
- GOOS=linux