latest
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jeffrey Paul 2022-12-09 00:40:53 +01:00
parent 91981777fa
commit b4593002cb

23
tagimage.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
set -euox pipefail
if [[ "$(uname -m)" != "arm64" ]]; then
echo "wrong box, run on macOS arm workstation after CI" > /dev/stderr
exit 1
fi
GITREV="$(git describe --always --dirty=-dirty)"
BRANCH="$(git branch --show-current)"
YYYYMMDD="$(date -u +%Y-%m-%d)"
RN="sneak/builder"
for TAG in $GITREV latest $YYYYMMDD $BRANCH ; do
# pull down the amd64 images from the CI box
docker pull $RN:$TAG-x86_64
docker manifest create \
$RN:$TAG \
--amend $RN:$TAG-arm64 \
--amend $RN:$TAG-x86_64
docker manifest push $RN:$TAG
done