Skip to content

Commit

Permalink
test: update edit_dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andhreljaKern committed Dec 12, 2024
1 parent ad18cbc commit c7ac882
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pi/edit_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ PI_EXISTING_TAG=$(grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:" $DOCKERFILE |
PI_EXISTING_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${PI_EXISTING_TAG}"
PI_NEW_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${RELEASE_TAG}-${PARENT_IMAGE_TYPE}"

echo "PI_EXISTING_TAG = $PI_EXISTING_TAG"
echo "PI_EXISTING_IMAGE = $PI_EXISTING_IMAGE"
echo "PI_NEW_IMAGE = $PI_NEW_IMAGE"

echo "Dockerfile before update:"
cat ${DOCKERFILE}
sed 's|'${PI_EXISTING_IMAGE}'|'${PI_NEW_IMAGE}'|g' ${DOCKERFILE} > ${DOCKERFILE}.tmp && mv ${DOCKERFILE}.tmp ${DOCKERFILE}
Expand Down

0 comments on commit c7ac882

Please sign in to comment.