fix paths in docker build

This commit is contained in:
David Newhall II 2019-07-08 21:00:27 -07:00
parent d981f9bd66
commit d8b9ab926d
2 changed files with 13 additions and 9 deletions

View File

@ -1,13 +1,13 @@
#!/bin/bash
# This always run local to the Dockerfile folder, so the path is ../..
set -e -o pipefail
# The Docker Cloud config must pass in the BUILDS env variable.
# See README.md (in this dir) and the screenshot for more info.
source ../../.metadata.sh
set -e -o pipefail
# This always run local to the Dockerfile folder, so the path is ../..
pushd ../..
source .metadata.sh
# Build each configured image from Docker Cloud.
for build in $BUILDS; do
@ -27,5 +27,7 @@ for build in $BUILDS; do
--build-arg "VENDOR=${VENDOR}" \
--build-arg "AUTHOR=${MAINT}" \
--tag "${IMAGE_NAME}_${os}_${name}" \
--file Dockerfile ../..
--file Dockerfile .
done
popd

View File

@ -1,10 +1,12 @@
#!/bin/bash
# This post build hook creates multi-architecture docker manifests.
# It's all a bit complicated for some reason.
set -e -o pipefail
source ../../.metadata.sh
pushd ../..
source .metadata.sh
popd
if [ "$BUILDS" != "" ]; then
TAGS=$DOCKER_TAG