remove always trigger, remove redundant build-and-upload step

This commit is contained in:
leongross 2022-11-28 14:50:20 +01:00
parent 6eab009c88
commit 4f639ef44a
No known key found for this signature in database
GPG Key ID: 8684D89F6BF9B743
2 changed files with 3 additions and 14 deletions

View File

@ -1,4 +1,4 @@
name: Build micro service
name: Build micro service (KO)
description: Build and upload a container image for a Constellation micro-service
inputs:
name:
@ -30,11 +30,12 @@ runs:
uses: imjasonh/setup-ko@v0.6
- name: Build and upload ko container image
shell: bash
id: build
env:
KO_USER: ${{ github.actor }}
KO_CONFIG_PATH: ${{ inputs.koConfig }}
KO_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
KO_PASSWORD: ${{ inputs.githubToken }}
KO_DOCKER_REPO: ${{ env.REGISTRY }}/edgelesssys/constellation
GIT_REF: ${{ github.ref }}
run: |

View File

@ -31,18 +31,6 @@ jobs:
- name: Set up ko
uses: imjasonh/setup-ko@v0.6
- name: Build and upload KMS server container image
id: build-and-upload
env:
KO_USER: ${{ github.actor }}
KO_CONFIG_PATH: ${{ github.workspace }}/.ko.yaml
KO_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
KO_DOCKER_REPO: ${{ env.REGISTRY }}/edgelesssys/constellation
GIT_REF: ${{ github.ref }}
run: |
tag=$(echo ${GIT_REF} | cut -d'/' -f3)
ko build ./kms/cmd --preserve-import-paths -t ${tag}
- name: Build and upload KMS server container image
id: build-and-upload
uses: ./.github/actions/build_micro_service_ko