Update 3 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s
This commit is contained in:
@@ -8,9 +8,9 @@ _check_required_env_vars
|
||||
# It is called with the path to the server specific env file as an argument.
|
||||
|
||||
|
||||
_remove_container $CONTAINER_NAME || _die "Failed to remove container ${CONTAINER_NAME}"
|
||||
_is_container_running && _die "Couldn't stop existing container"
|
||||
_is_container_exists && _die "Couldn't remove existing container"
|
||||
_remove_container "$CONTAINER_NAME" || _die "Failed to remove container ${CONTAINER_NAME}"
|
||||
_is_container_running "$CONTAINER_NAME" && _die "Couldn't stop existing container"
|
||||
_is_container_exists "$CONTAINER_NAME" && _die "Couldn't remove existing container"
|
||||
|
||||
# remove the image
|
||||
docker rmi "$IMAGE_REGISTRY/$IMAGE_REPO:$IMAGE_TAG" || echo "Failed to remove image $IMAGE_REGISTRY/$IMAGE_REPO:$IMAGE_TAG"
|
||||
|
Reference in New Issue
Block a user