Skip to content

Commit

Permalink
Fix builder
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Jun 23, 2023
1 parent 5bcd370 commit 2ea426d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish ${{ matrix.architecture }} builder
uses: ./
# uses: ./
uses: home-assistant/[email protected]
with:
args: |
--${{ matrix.architecture }} \
Expand Down
4 changes: 2 additions & 2 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function run_build() {

if \
docker image inspect "${repository}/${image}:${cache_tag}" > /dev/null 2>&1 \
&& cosign_validate "${cosign_issuer}" "${cosign_identity}" "${repository}/${image}:${cache_tag}" "${docker_platform}" "false" \
&& cosign_verify "${cosign_issuer}" "${cosign_identity}" "${repository}/${image}:${cache_tag}" "${docker_platform}" "false" \
; then
docker_cli+=("--cache-from" "${repository}/${image}:${cache_tag}")
else
Expand All @@ -305,7 +305,7 @@ function run_build() {
docker_cli+=("--label" "org.opencontainers.image.version=${release}")

# Validate the base image
if ! cosign_validate "${cosign_base_issuer}" "${cosign_base_identity}" "${build_from}" "${docker_platform}" "true"; then
if ! cosign_verify "${cosign_base_issuer}" "${cosign_base_identity}" "${build_from}" "${docker_platform}" "true"; then
bashio::exit.nok "Invalid base image ${build_from}"
fi

Expand Down

0 comments on commit 2ea426d

Please sign in to comment.