add multiarch

This commit is contained in:
11notes
2020-09-08 11:40:38 +02:00
parent 9ccfdc9dd3
commit 912364d3b3
3 changed files with 15 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,3 +1 @@
maintain/
multi-arch-manifest.yaml
post_push

4
hooks/post_push Normal file
View File

@@ -0,0 +1,4 @@
#!/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.yaml

11
multi-arch-manifest.yaml Normal file
View File

@@ -0,0 +1,11 @@
image: 11notes/nginx:1.18.0
manifests:
- image: 11notes/nginx:amd64-1.18.0
platform:
architecture: amd64
os: linux
- image: 1notes/nginx:arm64v8-1.18.0
platform:
architecture: arm64
os: linux
variant: v8