From 54ebcfc3292f604f2306c095f9fa2999fddf841c Mon Sep 17 00:00:00 2001 From: ElevenNotes Date: Tue, 20 Feb 2024 15:54:14 +0100 Subject: [PATCH] multi --- hooks/post_push | 5 +++++ multi-arch-manifest-stable.yaml | 11 +++++++++++ multi-arch-manifest-version.yaml | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 hooks/post_push create mode 100644 multi-arch-manifest-stable.yaml create mode 100644 multi-arch-manifest-version.yaml diff --git a/hooks/post_push b/hooks/post_push new file mode 100644 index 0000000..022ec9e --- /dev/null +++ b/hooks/post_push @@ -0,0 +1,5 @@ +#!/bin/bash +curl -Lo manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.9.0/manifest-tool-linux-amd64 +chmod +x manifest-tool +./manifest-tool push from-spec multi-arch-manifest-version.yaml +./manifest-tool push from-spec multi-arch-manifest-stable.yaml \ No newline at end of file diff --git a/multi-arch-manifest-stable.yaml b/multi-arch-manifest-stable.yaml new file mode 100644 index 0000000..f1f6688 --- /dev/null +++ b/multi-arch-manifest-stable.yaml @@ -0,0 +1,11 @@ +image: 11notes/nginx:stable +manifests: + - image: 11notes/nginx:amd64-stable + platform: + architecture: amd64 + os: linux + - image: 11notes/nginx:arm64v8-stable + platform: + architecture: arm64 + os: linux + variant: v8 \ No newline at end of file diff --git a/multi-arch-manifest-version.yaml b/multi-arch-manifest-version.yaml new file mode 100644 index 0000000..d8c3443 --- /dev/null +++ b/multi-arch-manifest-version.yaml @@ -0,0 +1,11 @@ +image: 11notes/nginx:1.24.0 +manifests: + - image: 11notes/nginx:amd64-1.24.0 + platform: + architecture: amd64 + os: linux + - image: 11notes/nginx:arm64v8-1.24.0 + platform: + architecture: arm64 + os: linux + variant: v8 \ No newline at end of file