Skip to content

Commit

Permalink
Fix error from replace text, remove zapinfo clean which can fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Apr 14, 2022
1 parent f7a5435 commit 10818f6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions integrations/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if [[ $IMAGE == $ZAP_IMAGE_NAME ]]; then
if [[ ${*/--zap//} != "${*}" ]]; then
zap_install_customized='YES'
zap_sha=${*/--zap=/}
zap_sha=$(echo $zap_custom_sha | awk '{print $1}')
zap_sha=$(echo $zap_sha | awk '{print $1}')
echo "using custom zap commit: " $zap_sha

else
Expand All @@ -104,11 +104,6 @@ fi
docker build "${BUILD_ARGS[@]}" --build-arg VERSION="$VERSION" -t "$ORG/$IMAGE:$VERSION" .
docker image prune --force

# Clean zap
if [[ $IMAGE == $ZAP_IMAGE_NAME ]]; then
rm $zap_image_context/$zap_info_file_name
fi

[[ ${*/--latest//} != "${*}" ]] && {
docker tag "$ORG"/"$IMAGE":"$VERSION" "$ORG"/"$IMAGE":latest
}
Expand Down

0 comments on commit 10818f6

Please sign in to comment.