mirror of
https://github.com/maxkratz/postfix_exporter.git
synced 2024-05-18 12:00:21 +00:00
21 lines
491 B
Bash
Executable file
21 lines
491 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# setup
|
|
echo "=> Starting setup."
|
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
docker buildx rm builder
|
|
docker buildx create --name builder --driver docker-container --use
|
|
docker buildx inspect --bootstrap
|
|
|
|
echo "=> Starting builds."
|
|
|
|
#linux/amd64,linux/arm64,linux/arm/v7
|
|
|
|
# base image
|
|
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t maxkratz/postfix_exporter:latest --push .
|
|
#--push
|
|
|
|
echo "=> Build and push finished."
|