empty context

This commit is contained in:
Shihaam Abdul Rahman 2023-10-06 01:43:43 +05:00
parent 82e2cc3167
commit dc5833730c
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -143,7 +143,10 @@ build(){
if [ -z "$dockerfile" ]; then
dockerfile="Dockerfile"
fi
$engine buildx build --platform $platform -t $new_image_tag -f $context$dockerfile $context
if [ -z "$context" ]; then
context="."
fi
$engine buildx build --platform $platform -t $new_image_tag -f $context/$dockerfile $context
done
}
#push(){