README: Add build instructions for Podman
This commit is contained in:
parent
15fb6cc989
commit
f3abd74f6f
1 changed files with 26 additions and 3 deletions
29
README.md
29
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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue