Commit df73353e authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

Update aws.yml - fix the if condition

parent cf3c4154
Pipeline #31539 passed with stage
in 8 seconds
......@@ -126,13 +126,13 @@ aws-containerize:
needs: ['compile-and-unit-test']
script:
- |
if [ -n $BUILDER_DOCKERFILE_PATH ] && [ -n $RUNTIME_DOCKERFILE_PATH ]; then
if [ -z $BUILDER_DOCKERFILE_PATH ] && [ -z $RUNTIME_DOCKERFILE_PATH ]; then
echo Building BUILD_DIR/Dockerfile container;
docker build -f $BUILD_DIR/Dockerfile -t $LOCAL_IMAGE_TAG .;
else
echo Building BUILDER->RUNTIME containers;
docker build -t builder:latest --file $BUILDER_DOCKERFILE_PATH .;
docker build -t $LOCAL_IMAGE_TAG --file $RUNTIME_DOCKERFILE_PATH --build-arg docker_builder_image=builder .;
else
echo Building BUILD_DIR/Dockerfile container;
docker build -f $BUILD_DIR/Dockerfile -t $LOCAL_IMAGE_TAG .;
fi
# Push to the local container registry
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment