Skip to content

Commit

Permalink
test: edit_dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andhreljaKern committed Dec 12, 2024
1 parent 4c5a7c9 commit a5a1641
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pi/edit_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,15 @@ 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 "grep ${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME} $DOCKERFILE"
echo "------------------------------------"
echo "------------ grep ------------"
grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMAGE_TYPE}" $DOCKERFILE
grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}" $DOCKERFILE
echo "------------------------------------"


grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMAGE_TYPE}" $DOCKERFILE | while read -r line ; do
grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}" $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}"
PI_NEW_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${RELEASE_TAG}-${PARENT_IMAGE_TYPE}"
Expand Down

0 comments on commit a5a1641

Please sign in to comment.