README: Add build instructions for Podman

This commit is contained in:
Viyurz 2024-07-05 16:29:51 +02:00
parent 15fb6cc989
commit f3abd74f6f
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -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
```