fix paths in docker build
This commit is contained in:
parent
d981f9bd66
commit
d8b9ab926d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue