Publish images missing OCI metadata
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8
context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; }
name:ph… (push) Successful in 1m4s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18
POSTGIS_VERSION=3
VCHORD_VERSION=0.5.3
context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 52s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3
context:python-tools fingerprint_command:dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort
name:python-tools oci_labels:org.opencontainers.image.title=Python 3 tools with Exif… (push) Successful in 41s
Build custom container images / build (map[base_image:php:8-fpm-alpine build_args:PHP_VERSION=8
context:php8-pgsql fingerprint_command:{ apk info -v | LC_ALL=C sort; find /usr/local/lib/php/extensions /usr/local/etc/php/conf.d -type f -exec sha256sum {} + | LC_ALL=C sort; }
name:ph… (push) Successful in 1m4s
Build custom container images / build (map[base_image:postgres:18 build_args:PG_VERSION=18
POSTGIS_VERSION=3
VCHORD_VERSION=0.5.3
context:postgres fingerprint_command:{ dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort; find /usr/lib/postgresql -type f -exec sha256su… (push) Successful in 52s
Build custom container images / build (map[base_image:python:3 build_args:PYTHON_VERSION=3
context:python-tools fingerprint_command:dpkg-query -W -f='${binary:Package}=${Version}\n' | LC_ALL=C sort
name:python-tools oci_labels:org.opencontainers.image.title=Python 3 tools with Exif… (push) Successful in 41s
This commit is contained in:
@@ -50,7 +50,18 @@ fingerprint() {
|
|||||||
candidate_fingerprint="$(fingerprint "$candidate_tag")"
|
candidate_fingerprint="$(fingerprint "$candidate_tag")"
|
||||||
docker pull "$PRIMARY_TAG" >/dev/null 2>&1 || true
|
docker pull "$PRIMARY_TAG" >/dev/null 2>&1 || true
|
||||||
current_fingerprint="$(docker image inspect "$PRIMARY_TAG" --format '{{ index .Config.Labels "org.ajpanton.content-fingerprint" }}' 2>/dev/null || true)"
|
current_fingerprint="$(docker image inspect "$PRIMARY_TAG" --format '{{ index .Config.Labels "org.ajpanton.content-fingerprint" }}' 2>/dev/null || true)"
|
||||||
if [[ -z "$current_fingerprint" ]] && docker image inspect "$PRIMARY_TAG" >/dev/null 2>&1; then
|
current_labels_match=true
|
||||||
|
for oci_label in "${oci_labels[@]}"; do
|
||||||
|
label_key="${oci_label%%=*}"
|
||||||
|
label_value="${oci_label#*=}"
|
||||||
|
current_label_value="$(docker image inspect "$PRIMARY_TAG" --format "{{ index .Config.Labels \"${label_key}\" }}" 2>/dev/null || true)"
|
||||||
|
if [[ "$current_label_value" != "$label_value" ]]; then
|
||||||
|
current_labels_match=false
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ "$current_labels_match" == true && -z "$current_fingerprint" ]] && docker image inspect "$PRIMARY_TAG" >/dev/null 2>&1; then
|
||||||
current_fingerprint="$(fingerprint "$PRIMARY_TAG")"
|
current_fingerprint="$(fingerprint "$PRIMARY_TAG")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user