Skip to content

Commit

Permalink
test: different grep method
Browse files Browse the repository at this point in the history
  • Loading branch information
andhreljaKern committed Dec 12, 2024
1 parent 3aab2ec commit 4c5a7c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pi/edit_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ do
esac
done

echo "------------ git status ------------"
git status
echo "------------------------------------"
echo "------------ ls -l ------------"
ls -l
echo "------------------------------------"
echo "------------ echo grep ------------"
echo "grep ${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMAGE_TYPE} $DOCKERFILE"
echo "------------------------------------"
echo "------------ grep ------------"
grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMAGE_TYPE}" $DOCKERFILE
echo "------------------------------------"


grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMAGE_TYPE}" $DOCKERFILE | while read -r line ; do
PI_EXISTING_TAG=$(echo $line | sed 's|FROM ||g' | cut -d ':' -f 2)
PI_EXISTING_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${PI_EXISTING_TAG}"
Expand Down

0 comments on commit 4c5a7c9

Please sign in to comment.