diff --git a/pi/edit_dockerfile.sh b/pi/edit_dockerfile.sh index 36e0dd6..e089b32 100644 --- a/pi/edit_dockerfile.sh +++ b/pi/edit_dockerfile.sh @@ -23,5 +23,6 @@ PI_EXISTING_TAG=$(grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMA 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 "$(sed 's|'${PI_EXISTING_IMAGE}'|'${PI_NEW_IMAGE}'|g' ${DOCKERFILE})" > $DOCKERFILE +DOCKER_CONTENT="$(sed 's|'${PI_EXISTING_IMAGE}'|'${PI_NEW_IMAGE}'|g' ${DOCKERFILE})" +echo ${DOCKER_CONTENT} > ${DOCKERFILE} echo "::notice::Dockerfile updated with new image: ${PI_NEW_IMAGE}" \ No newline at end of file