Skip to content

Commit

Permalink
fix: edit Dockerfile file overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
andhreljaKern committed Dec 12, 2024
1 parent fcfcf66 commit f40bf03
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pi/edit_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ PI_EXISTING_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${PI_EXISTING_TAG}"
PI_NEW_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${RELEASE_TAG}-${PARENT_IMAGE_TYPE}"

sed -e 's|'${PI_EXISTING_IMAGE}'|'${PI_NEW_IMAGE}'|g' ${DOCKERFILE} > ${DOCKERFILE}.tmp && mv ${DOCKERFILE}.tmp ${DOCKERFILE}
echo ${DOCKER_CONTENT} > ${DOCKERFILE}
echo "::notice::Dockerfile updated with new image: ${PI_NEW_IMAGE}"

0 comments on commit f40bf03

Please sign in to comment.