A simple, fault-tolerant, and easy-to-audit web-based password manager. https://pwm.sequentialread.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
2.0 KiB

#!/bin/bash -e
VERSION="2.0.8"
rm -rf dockerbuild || true
mkdir dockerbuild
cp Dockerfile dockerbuild/Dockerfile-amd64
cp Dockerfile dockerbuild/Dockerfile-arm
cp Dockerfile dockerbuild/Dockerfile-arm64
sed -E 's|FROM alpine|FROM amd64/alpine|' -i dockerbuild/Dockerfile-amd64
sed -E 's|FROM alpine|FROM arm32v7/alpine|' -i dockerbuild/Dockerfile-arm
sed -E 's|FROM alpine|FROM arm64v8/alpine|' -i dockerbuild/Dockerfile-arm64
sed -E 's/GOARCH=/GOARCH=amd64/' -i dockerbuild/Dockerfile-amd64
sed -E 's/GOARCH=/GOARCH=arm/' -i dockerbuild/Dockerfile-arm
sed -E 's/GOARCH=/GOARCH=arm64/' -i dockerbuild/Dockerfile-arm64
docker build -f dockerbuild/Dockerfile-amd64 -t sequentialread/sequentialread-password-manager:$VERSION-amd64 .
docker build -f dockerbuild/Dockerfile-arm -t sequentialread/sequentialread-password-manager:$VERSION-arm .
docker build -f dockerbuild/Dockerfile-arm64 -t sequentialread/sequentialread-password-manager:$VERSION-arm64 .
docker push sequentialread/sequentialread-password-manager:$VERSION-amd64
docker push sequentialread/sequentialread-password-manager:$VERSION-arm
docker push sequentialread/sequentialread-password-manager:$VERSION-arm64
export DOCKER_CLI_EXPERIMENTAL=enabled
docker manifest create sequentialread/sequentialread-password-manager:$VERSION \
sequentialread/sequentialread-password-manager:$VERSION-amd64 \
sequentialread/sequentialread-password-manager:$VERSION-arm \
sequentialread/sequentialread-password-manager:$VERSION-arm64
docker manifest annotate --arch amd64 sequentialread/sequentialread-password-manager:$VERSION sequentialread/sequentialread-password-manager:$VERSION-amd64
docker manifest annotate --arch arm sequentialread/sequentialread-password-manager:$VERSION sequentialread/sequentialread-password-manager:$VERSION-arm
docker manifest annotate --arch arm64 sequentialread/sequentialread-password-manager:$VERSION sequentialread/sequentialread-password-manager:$VERSION-arm64
docker manifest push sequentialread/sequentialread-password-manager:$VERSION
rm -rf dockerbuild || true