add file specification so it doesnt repeatedly build the same one

This commit is contained in:
Nicholas St. Germain 2019-01-16 23:58:12 -06:00
parent 502fd819a3
commit 98794b3e7b

View file

@ -56,7 +56,7 @@ fi
# ARM variants # ARM variants
for i in $(ls *arm*); do for i in $(ls *arm*); do
ARCH="$(echo ${i} | cut -d. -f2)" ARCH="$(echo ${i} | cut -d. -f2)"
docker build -t "${REPOSITORY}:${TAG}-${ARCH}" . && \ docker build -f "Dockerfile.${ARCH}" -t "${REPOSITORY}:${TAG}-${ARCH}" . && \
docker push "${REPOSITORY}:${TAG}-${ARCH}" docker push "${REPOSITORY}:${TAG}-${ARCH}"
# Add variant to manifest # Add variant to manifest
docker manifest create -a "${REPOSITORY}:${TAG}" "${REPOSITORY}:${TAG}-${ARCH}" docker manifest create -a "${REPOSITORY}:${TAG}" "${REPOSITORY}:${TAG}-${ARCH}"