diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a31c0e4..0d10f894 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: dokken/amazonlinux-2: 'dokken/amazonlinux-2/**' dokken/amazonlinux-2023: 'dokken/amazonlinux-2023/**' dokken/centos-stream-9: 'dokken/centos-stream-9/**' + dokken/cinc: 'dokken/cinc/**' dokken/debian-11: 'dokken/debian-11/**' dokken/debian-12: 'dokken/debian-12/**' dokken/eurolinux-9: 'dokken/eurolinux-9/**' diff --git a/bin/test-entrypoint.sh b/bin/test-entrypoint.sh new file mode 100755 index 00000000..f6df0f46 --- /dev/null +++ b/bin/test-entrypoint.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -eu -o pipefail + +json_data="$(docker buildx bake --print 2>/dev/null)" +first_build_target=$(echo "$json_data" | jq -r '.target | to_entries[0].value') +if echo "$first_build_target" | jq -e '.labels."dev.polymathrobotics.container-build-publish-action.test-entrypoint"' > /dev/null; then + test_entrypoint=$(echo "$first_build_target" | jq -r '.labels."dev.polymathrobotics.container-build-publish-action.test-entrypoint"') + echo "$test_entrypoint" +else + echo "/bin/bash" +fi diff --git a/dokken/cinc/Containerfile b/dokken/cinc/Containerfile index da6c7855..0de207c2 100644 --- a/dokken/cinc/Containerfile +++ b/dokken/cinc/Containerfile @@ -4,6 +4,7 @@ ARG BASE_IMAGE=docker.io/busybox:1.36.1 # the --volumes-from parameter, the operating system type doesn't matter. # So we use busybox, a really small distro, with just enough support to # be able to download and install the binaries for cinc. +# hadolint ignore=DL3006 FROM $BASE_IMAGE AS base ARG CINC_URL_AMD64 @@ -30,7 +31,7 @@ RUN <