File tree 2 files changed +3
-12
lines changed
2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ jobs:
208
208
-r "${{ env.DOCKERHUB_CONTAINER_REGISTRY }}" \
209
209
-d "dev.${{ env.DOCKERFILE }}"
210
210
211
- git add requirements/${{ matrix.parent_image_type }}-requirements.txt
212
- git commit -m "ci: update ${{ matrix.parent_image_type }}-requirements.txt" || true
211
+ git add requirements/${{ matrix.parent_image_type }}-requirements.txt ${{ env.DOCKERFILE }} dev.${{ env.DOCKERFILE }}
212
+ git commit -m "ci: update ${{ matrix.parent_image_type }}-requirements.txt and Dockerfile " || true
213
213
git push origin ${{ env.HEAD_REF }}
214
214
echo "::notice::${{ matrix.app }} - updated ${{ matrix.parent_image_type }}-requirements.txt"
215
215
Original file line number Diff line number Diff line change 19
19
esac
20
20
done
21
21
22
- echo " --------- echo grep ---------"
23
- echo " grep ${DOCKER_REGISTRY} /${PARENT_IMAGE_NAME} $DOCKERFILE "
24
- echo " -----------------------------"
25
-
26
22
grep " ${DOCKER_REGISTRY} /${PARENT_IMAGE_NAME} " $DOCKERFILE | while read -r line ; do
27
23
PI_EXISTING_TAG=$( echo $line | sed ' s|FROM ||g' | cut -d ' :' -f 2)
28
24
PI_EXISTING_IMAGE=" ${DOCKER_REGISTRY} /${PARENT_IMAGE_NAME} :${PI_EXISTING_TAG} "
29
25
PI_NEW_IMAGE=" ${DOCKER_REGISTRY} /${PARENT_IMAGE_NAME} :${RELEASE_TAG} -${PARENT_IMAGE_TYPE} "
30
26
31
- echo " PI_EXISTING_TAG = $PI_EXISTING_TAG "
32
- echo " PI_EXISTING_IMAGE = $PI_EXISTING_IMAGE "
33
- echo " PI_NEW_IMAGE = $PI_NEW_IMAGE "
34
-
35
27
sed " s|${PI_EXISTING_IMAGE} |${PI_NEW_IMAGE} |g" ${DOCKERFILE} > ${DOCKERFILE} .tmp && mv ${DOCKERFILE} .tmp ${DOCKERFILE}
28
+ echo " ::notice::Dockerfile updated with new image: ${PI_NEW_IMAGE} "
36
29
done
37
-
38
- echo " ::notice::Dockerfile updated with new image: ${PI_NEW_IMAGE} "
You can’t perform that action at this time.
0 commit comments