Skip to content

Commit

Permalink
fix: update release tag template
Browse files Browse the repository at this point in the history
  • Loading branch information
andhreljaKern committed Dec 12, 2024
1 parent af700a1 commit cd74adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pi/edit_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ done

PI_EXISTING_TAG=$(grep "${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:v.*-${PARENT_IMAGE_TYPE}" $DOCKERFILE_PATH | sed 's|FROM ||g' | cut -d ':' -f 2)
PI_EXISTING_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${PI_EXISTING_TAG}"
PI_NEW_IMAGE="${DOCKER_REGISTRY}/${PARENT_IMAGE_NAME}:${RELEASE_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_PATH})" > $DOCKERFILE_PATH
echo "::notice::Dockerfile updated with new image: ${PI_NEW_IMAGE}"

0 comments on commit cd74adf

Please sign in to comment.