mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-09 07:22:40 -04:00
update actions to use path to constellation
This commit is contained in:
parent
d001df596a
commit
d9b11a9948
2 changed files with 9 additions and 4 deletions
|
@ -4,6 +4,10 @@ inputs:
|
||||||
name:
|
name:
|
||||||
description: "Name of the micro-service"
|
description: "Name of the micro-service"
|
||||||
required: true
|
required: true
|
||||||
|
constellationPath:
|
||||||
|
description: "Path to the Constellation repository"
|
||||||
|
default: "."
|
||||||
|
required: false
|
||||||
koConfig:
|
koConfig:
|
||||||
description: "Path to the .ko.yaml config file"
|
description: "Path to the .ko.yaml config file"
|
||||||
default: ".ko.yaml"
|
default: ".ko.yaml"
|
||||||
|
@ -37,11 +41,11 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Determine pseudo version
|
- name: Determine pseudo version
|
||||||
id: pseudo-version
|
id: pseudo-version
|
||||||
uses: ./.github/actions/pseudo_version
|
uses: ${{ inputs.constellationPath }}/.github/actions/pseudo_version
|
||||||
|
|
||||||
- name: Build and upload container image
|
- name: Build and upload container image
|
||||||
id: build-and-upload
|
id: build-and-upload
|
||||||
uses: ./.github/actions/build_ko
|
uses: ${{ inputs.constellationPath }}/.github/actions/build_ko
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.name }}
|
name: ${{ inputs.name }}
|
||||||
koConfig: ${{ inputs.koConfig }}
|
koConfig: ${{ inputs.koConfig }}
|
||||||
|
@ -61,7 +65,7 @@ runs:
|
||||||
echo CONTAINER_FULL=$container_full >> $GITHUB_ENV
|
echo CONTAINER_FULL=$container_full >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Generate SBOM
|
- name: Generate SBOM
|
||||||
uses: ./.github/actions/container_sbom
|
uses: ${{ inputs.constellationPath }}/.github/actions/container_sbom
|
||||||
with:
|
with:
|
||||||
containerReference: ${{ env.CONTAINER_FULL }}
|
containerReference: ${{ env.CONTAINER_FULL }}
|
||||||
cosignPublicKey: ${{ inputs.cosignPublicKey }}
|
cosignPublicKey: ${{ inputs.cosignPublicKey }}
|
||||||
|
|
|
@ -52,9 +52,10 @@ jobs:
|
||||||
- name: Build and upload join service container image
|
- name: Build and upload join service container image
|
||||||
id: build-and-upload
|
id: build-and-upload
|
||||||
# assumes that we are currently in the root of the repo
|
# assumes that we are currently in the root of the repo
|
||||||
uses: ./constellation/.github/actions/build_micro_service_ko
|
uses: ${{ github.workspace }}/constellation/.github/actions/build-and-upload-ko
|
||||||
with:
|
with:
|
||||||
name: gcp-guest-agent
|
name: gcp-guest-agent
|
||||||
|
constellationPath: ${{ github.workspace }}/constellation
|
||||||
koTarget: ./guest-agent/google-guest-agent/
|
koTarget: ./guest-agent/google-guest-agent/
|
||||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
cosignPublicKey: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PUBLIC_KEY || secrets.COSIGN_DEV_PUBLIC_KEY }}
|
cosignPublicKey: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PUBLIC_KEY || secrets.COSIGN_DEV_PUBLIC_KEY }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue