Skip to content

Commit 646c1fb

Browse files
committed
fix: edit_dockerfile output ordering
1 parent 7d71467 commit 646c1fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pi/edit_dockerfile.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ PI_EXISTING_TAG=$(grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMA
2323
PI_EXISTING_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${PI_EXISTING_TAG}"
2424
PI_NEW_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${RELEASE_TAG}-${PARENT_IMAGE_TYPE}"
2525

26-
echo "$(sed 's|'${PI_EXISTING_IMAGE}'|'${PI_NEW_IMAGE}'|g' ${DOCKERFILE})" > $DOCKERFILE
26+
DOCKER_CONTENT="$(sed 's|'${PI_EXISTING_IMAGE}'|'${PI_NEW_IMAGE}'|g' ${DOCKERFILE})"
27+
echo ${DOCKER_CONTENT} > ${DOCKERFILE}
2728
echo "::notice::Dockerfile updated with new image: ${PI_NEW_IMAGE}"

0 commit comments

Comments
 (0)