update apko image building path

This commit is contained in:
leongross 2022-12-08 12:15:47 +01:00
parent b75a727646
commit 89cdb56183
No known key found for this signature in database
GPG Key ID: 8684D89F6BF9B743
4 changed files with 11 additions and 5 deletions

View File

@ -4,8 +4,6 @@ inputs:
name:
description: "Name of the micro-service"
required: true
default: "."
required: false
koConfig:
description: "Path to the .ko.yaml config file"
default: ".ko.yaml"

View File

@ -2,6 +2,13 @@ name: Build and upload all apko container images
on:
workflow_dispatch:
push:
branches:
- main
- "release/**"
- "feat/reproducible-builds-ko"
paths:
- "image/apko/*.yaml"
jobs:
build-apko-image:

View File

@ -47,8 +47,9 @@ jobs:
koData="./guest-agent/kodata"
mkdir -p $koData
cp ./constellation/3rdparty/gcp-guest-agent/instance_configs.cfg $koData
cd ..
ls ${{ github.workspace }}/constellation/.github/actions/build_micro_service_ko
cd ${{ github.workspace }}/
ls -lah
ln -s ./constellation/.github/ .github
- name: Build and upload gcp guest service container image
id: build-and-upload
@ -56,7 +57,6 @@ jobs:
uses: ./.github/actions/build_micro_service_ko
with:
name: gcp-guest-agent
constellationPath: ${{ github.workspace }}/constellation
koTarget: ./guest-agent/google-guest-agent/
githubToken: ${{ secrets.GITHUB_TOKEN }}
cosignPublicKey: ${{ startsWith(github.ref, 'refs/heads/release/v') && secrets.COSIGN_PUBLIC_KEY || secrets.COSIGN_DEV_PUBLIC_KEY }}

View File

@ -5,6 +5,7 @@ contents:
packages:
- alpine-base
- libvirt-dev
- bash
environment:
PATH: /usr/sbin:/sbin:/usr/bin:/bin