diff --git a/contrib/docker/hooks/post_push b/contrib/docker/hooks/post_push new file mode 100755 index 00000000..0f026f93 --- /dev/null +++ b/contrib/docker/hooks/post_push @@ -0,0 +1,5 @@ +#!/bin/bash +curl -sLo manifest-tool "https://github.com/estesp/manifest-tool/releases/download/v1.0.3/manifest-tool-linux-amd64" +chmod +x manifest-tool +sed -e "s#%image_name%#$IMAGE_NAME#" manifest.template > manifest.yaml +./manifest-tool push from-spec manifest.yaml diff --git a/contrib/docker/manifest.template b/contrib/docker/manifest.template new file mode 100644 index 00000000..9ac71dd9 --- /dev/null +++ b/contrib/docker/manifest.template @@ -0,0 +1,11 @@ +image: %image_name% +manifests: + - image: %image_name%-amd64 + platform: + architecture: amd64 + os: linux + - image: %image_name%-arm32v7 + platform: + architecture: arm + os: linux + variant: v7