use bare registry path, add -ko suffix, cleanup

This commit is contained in:
leongross 2022-11-28 15:51:26 +01:00
parent 070d0c3507
commit 1ca7e93241
No known key found for this signature in database
GPG Key ID: 8684D89F6BF9B743
3 changed files with 3 additions and 4 deletions

View File

@ -36,8 +36,8 @@ runs:
KO_USER: ${{ github.actor }}
KO_CONFIG_PATH: ${{ inputs.koConfig }}
KO_PASSWORD: ${{ inputs.githubToken }}
KO_DOCKER_REPO: ${{ env.REGISTRY }}/edgelesssys/constellation
KO_DOCKER_REPO: ${{ env.REGISTRY }}/edgelesssys/${{ inputs.name }}-ko
GIT_REF: ${{ github.ref }}
run: |
tag=$(echo ${GIT_REF} | cut -d'/' -f3)
ko build ${{ inputs.koTarget }} --preserve-import-paths --tags ${tag}
ko build ${{ inputs.koTarget }} --bare --tags ${tag}

View File

@ -7,7 +7,7 @@ on:
push:
jobs:
build-kms-server:
build-join-service:
runs-on: ubuntu-22.04
permissions:
contents: read

View File

@ -1,7 +1,6 @@
name: Build and upload KMS image (KO)
env:
REGISTRY: ghcr.io
IMAGE_NAME: kmsserver
on:
workflow_dispatch: