From dad9406721233c0befc9ddaf716ebc1da4d5d550 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 17 Jan 2021 17:10:15 +0100 Subject: [PATCH] added post hook for multi arch images --- contrib/docker/hooks/post_push | 5 +++++ contrib/docker/manifest.template | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100755 contrib/docker/hooks/post_push create mode 100644 contrib/docker/manifest.template 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