mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-12 16:09:39 -05:00
ci: fix workdir of apko base image build
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
f60f967bd8
commit
278031b066
8
.github/actions/build_apko/action.yml
vendored
8
.github/actions/build_apko/action.yml
vendored
@ -64,10 +64,11 @@ runs:
|
||||
env:
|
||||
DOCKER_BUILDKIT: "1"
|
||||
run: |
|
||||
docker build -o . -f hack/package-hasher/Containerfile.apk.downloader .
|
||||
docker build -o ./apko -f hack/package-hasher/Containerfile.apk.downloader ./apko
|
||||
|
||||
- name: Build apko images and sign them
|
||||
shell: bash
|
||||
working-directory: apko
|
||||
env:
|
||||
COSIGN_EXPERIMENTAL: "true"
|
||||
COSIGN_PUBLIC_KEY: ${{ inputs.cosignPublicKey }}
|
||||
@ -77,7 +78,7 @@ runs:
|
||||
APKO_ARCH: ${{ inputs.apkoArch }}
|
||||
CONTAINER_TAGS: ${{ inputs.containerTags }}
|
||||
REGISTRY: ${{ inputs.registry }}
|
||||
run: .github/actions/build_apko/build_and_sign.sh
|
||||
run: ../.github/actions/build_apko/build_and_sign.sh
|
||||
|
||||
- name: Sign sboms
|
||||
if: |
|
||||
@ -85,6 +86,7 @@ runs:
|
||||
inputs.cosignPrivateKey != '' &&
|
||||
inputs.cosignPassword != ''
|
||||
shell: bash
|
||||
working-directory: apko
|
||||
env:
|
||||
COSIGN_PUBLIC_KEY: ${{ inputs.cosignPublicKey }}
|
||||
COSIGN_PRIVATE_KEY: ${{ inputs.cosignPrivateKey }}
|
||||
@ -106,4 +108,4 @@ runs:
|
||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||
with:
|
||||
name: sboms
|
||||
path: sboms.zip
|
||||
path: apko/sboms.zip
|
||||
|
2
.github/actions/build_apko/build_and_sign.sh
vendored
2
.github/actions/build_apko/build_and_sign.sh
vendored
@ -63,6 +63,6 @@ if [[ -n ${APKO_CONFIG} ]]; then
|
||||
fi
|
||||
|
||||
echo "Building all images in image"
|
||||
for imageConfig in apko/*.yaml; do
|
||||
for imageConfig in ./*.yaml; do
|
||||
buildImage "${imageConfig}"
|
||||
done
|
||||
|
2
.github/workflows/build-apko-image.yml
vendored
2
.github/workflows/build-apko-image.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "/apko/**"
|
||||
- "apko/**"
|
||||
- ".github/workflows/build-apko-image.yml"
|
||||
|
||||
jobs:
|
||||
|
Loading…
Reference in New Issue
Block a user