From f3abd74f6f4638a449e843249ae540b152a0ea7c Mon Sep 17 00:00:00 2001 From: Viyurz Date: Fri, 5 Jul 2024 16:29:51 +0200 Subject: [PATCH] README: Add build instructions for Podman --- README.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79c7a99..d79eee2 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,9 @@ language = "Rust" repository_url = "https://github.com/dani-garcia/vaultwarden" ``` -## Create & push multi-platform image +## Create a multi-platform image tag + +### Docker Create a builder that use the `docker-container`` driver, which supports multi-platform builds: @@ -31,15 +33,36 @@ Create a builder that use the `docker-container`` driver, which supports multi-p docker buildx create --name multiarch --bootstrap ``` -Build the multi-platform image using this new builder: +Build the multi-platform image tag using this new builder: ``` docker buildx build --builder multiarch --load --platform linux/amd64,linux/arm64 --tag git.ahur.ac/viyurz/homepage:latest . ``` -Publish the image: +Push the image: ``` docker login git.ahur.ac docker push git.ahur.ac/viyurz/homepage:latest ``` + +### Podman + +Create a manifest with the image name and tag: + +``` +podman manifest create git.ahur.ac/viyurz/homepage:latest +``` + +Build the multi-platform image tag using this manifest: + +``` +podman build --format docker --platform linux/amd64,linux/arm64 --manifest git.ahur.ac/viyurz/homepage:latest . +``` + +Push the manifest: + +``` +podman login git.ahur.ac +podman manifest push git.ahur.ac/viyurz/homepage:latest +```