Remove manfiest for now, fix namespace

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2020-01-14 00:39:57 -06:00
parent ea989a78c4
commit d880f69836
No known key found for this signature in database
GPG Key ID: 2193804FCA429855
2 changed files with 21 additions and 18 deletions

View File

@ -27,7 +27,7 @@ version: 2
# generate and build dockerfile
pip install --upgrade pip
pip install -r requirements.txt
./Dockerfile.py --arch=${CIRCLE_JOB} -v
./Dockerfile.py --arch=${CIRCLE_JOB}
docker images
# run docker build & tests
# 2 parallel max b/c race condition with docker fixture (I think?)

View File

@ -26,7 +26,7 @@ annotate() {
fi
}
namespace='pihole'
namespace="${HUB_NAMESPACE}"
localimg='pihole'
remoteimg="$namespace/$localimg"
branch="$(parse_git_branch)"
@ -73,20 +73,23 @@ for tag in ${!arch_map[@]}; do
images+=(pihole/pihole:${version}_${tag})
done
$dry docker manifest create --amend pihole/pihole:${version} ${images[*]}
# TODO: Move below code to a post-arch build workflow stage that pulls all 4 archs & assembles
# TODO: Enable experimental mode on CI node too
for image in "${images[@]}"; do
annotate pihole/pihole:${version} ${image}
done
$dry docker manifest push pihole/pihole:${version}
# Floating latest tag alias
if [[ "$latest" == 'true' ]] ; then
latestimg="$remoteimg:latest"
$dry docker manifest create --amend "$latestimg" ${images[*]}
for image in "${images[@]}"; do
annotate "$latestimg" "${image}"
done
$dry docker manifest push "$latestimg"
fi
#$dry docker manifest create --amend pihole/pihole:${version} ${images[*]}
#
#for image in "${images[@]}"; do
# annotate pihole/pihole:${version} ${image}
#done
#
#$dry docker manifest push pihole/pihole:${version}
#
## Floating latest tag alias
#if [[ "$latest" == 'true' ]] ; then
# latestimg="$remoteimg:latest"
# $dry docker manifest create --amend "$latestimg" ${images[*]}
# for image in "${images[@]}"; do
# annotate "$latestimg" "${image}"
# done
# $dry docker manifest push "$latestimg"
#fi