Skip to content

Commit

Permalink
fix: edit_dockerfile output ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
andhreljaKern committed Dec 12, 2024
1 parent 7d71467 commit 646c1fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pi/edit_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 646c1fb

Please sign in to comment.