add image defintion for qemu metadata-api

This commit is contained in:
leongross 2022-12-08 12:00:20 +01:00
parent d9b11a9948
commit b75a727646
No known key found for this signature in database
GPG Key ID: 8684D89F6BF9B743
3 changed files with 19 additions and 7 deletions

View File

@ -4,8 +4,6 @@ inputs:
name:
description: "Name of the micro-service"
required: true
constellationPath:
description: "Path to the Constellation repository"
default: "."
required: false
koConfig:
@ -41,11 +39,11 @@ runs:
steps:
- name: Determine pseudo version
id: pseudo-version
uses: ${{ inputs.constellationPath }}/.github/actions/pseudo_version
uses: ./.github/actions/pseudo_version
- name: Build and upload container image
id: build-and-upload
uses: ${{ inputs.constellationPath }}/.github/actions/build_ko
uses: ./.github/actions/build_ko
with:
name: ${{ inputs.name }}
koConfig: ${{ inputs.koConfig }}
@ -65,7 +63,7 @@ runs:
echo CONTAINER_FULL=$container_full >> $GITHUB_ENV
- name: Generate SBOM
uses: ${{ inputs.constellationPath }}/.github/actions/container_sbom
uses: ./.github/actions/container_sbom
with:
containerReference: ${{ env.CONTAINER_FULL }}
cosignPublicKey: ${{ inputs.cosignPublicKey }}

View File

@ -48,11 +48,12 @@ jobs:
mkdir -p $koData
cp ./constellation/3rdparty/gcp-guest-agent/instance_configs.cfg $koData
cd ..
ls ${{ github.workspace }}/constellation/.github/actions/build_micro_service_ko
- name: Build and upload join service container image
- name: Build and upload gcp guest service container image
id: build-and-upload
# assumes that we are currently in the root of the repo
uses: ${{ github.workspace }}/constellation/.github/actions/build-and-upload-ko
uses: ./.github/actions/build_micro_service_ko
with:
name: gcp-guest-agent
constellationPath: ${{ github.workspace }}/constellation

View File

@ -0,0 +1,13 @@
contents:
repositories:
- https://dl-cdn.alpinelinux.org/alpine/edge/main
- https://dl-cdn.alpinelinux.org/alpine/edge/community
packages:
- alpine-base
- libvirt-dev
environment:
PATH: /usr/sbin:/sbin:/usr/bin:/bin
archs:
- amd64
- 386