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 c7ac882 commit 3980ecb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pi/edit_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ do
esac
done

PI_EXISTING_TAG=$(grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:" $DOCKERFILE | sed 's|FROM ||g' | cut -d ':' -f 2)
line=$(grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:" $DOCKERFILE)

PI_EXISTING_TAG=$(echo $line | sed 's|FROM ||g' | cut -d ':' -f 2)
PI_EXISTING_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${PI_EXISTING_TAG}"
PI_NEW_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${RELEASE_TAG}-${PARENT_IMAGE_TYPE}"

Expand Down

0 comments on commit 3980ecb

Please sign in to comment.