File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ jobs:
242
242
243
243
gh pr create --draft \
244
244
--title "test: parent image updates" \
245
- --body "${{ github.event.pull_request.body }}" \
245
+ --body "Main PR: https://github.com/ ${{ github.repository_owner }}/refinery-submodule-parent-images/pull/${{ github. event.pull_request.number }}" \
246
246
--base dev \
247
247
--head ${{ env.HEAD_REF }} \
248
248
--repo ${{ github.repository_owner }}/${{ matrix.app }} || true
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
PARENT_IMAGE_NAME=" refinery-parent-images"
6
- RELEASE_TAG=" parent-image-updates "
6
+ RELEASE_TAG=" v2.0.0 "
7
7
DOCKER_REGISTRY=" kernai"
8
8
DEV_REGISTRY=" registry.dev.kern.ai/code-kern-ai"
9
9
DOCKERFILE=" Dockerfile"
@@ -36,7 +36,10 @@ grep "${REGISTRY}/${PARENT_IMAGE_NAME}" $DOCKERFILE | while read -r line ; do
36
36
PARENT_IMAGE_TYPE=$( echo $PI_EXISTING_TAG | sed " s|${image_version} -||g" )
37
37
elif [ -n " $ALREADY_UPDATED " ] && [ -z " $HEAD_REF " ]; then
38
38
PARENT_IMAGE_TYPE=$( echo $PI_EXISTING_TAG | sed " s|${RELEASE_TAG} -||g" )
39
- elif [ -n " $HEAD_REF " ]; then
39
+ elif [ -z " $ALREADY_UPDATED " ] && [ -n " $HEAD_REF " ]; then
40
+ image_version=$( echo $PI_EXISTING_TAG | cut -d ' -' -f 1)
41
+ PARENT_IMAGE_TYPE=$( echo $PI_EXISTING_TAG | sed " s|${image_version} -||g" )
42
+ elif [ -n " $ALREADY_UPDATED " ] && [ -n " $HEAD_REF " ]; then
40
43
PARENT_IMAGE_TYPE=$( echo $PI_EXISTING_TAG | sed " s|${HEAD_REF} -||g" )
41
44
else
42
45
echo " ::error::Failed to determine parent image type from tag: ${PI_EXISTING_TAG} "
You can’t perform that action at this time.
0 commit comments