File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 13
13
include :
14
14
- image : gcr.io/kaniko-project/executor
15
15
latest-release-url : https://api.github.com/repos/GoogleContainerTools/kaniko/releases/latest
16
+ - image : moby/buildkit
17
+ latest-release-url : https://api.github.com/repos/moby/buildkit/releases/latest
16
18
- image : quay.io/containers/buildah
17
19
latest-release-url : https://quay.io/api/v1/repository/containers/buildah/tag/
18
20
steps :
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function update() {
36
36
echo " [INFO] Processing directory ${DIRECTORY} "
37
37
38
38
# Search the image URL recursively and parse the current image tag
39
- CURRENT_TAG=" $( (grep --no-filename --recursive " ${IMAGE} :" " ${DIRECTORY} " || true) | head --lines=1 | sed -E " s#.*${IMAGE} :([v\.0-9]*).*?#\1#" ) "
39
+ CURRENT_TAG=" $( (grep --no-filename --recursive " ${IMAGE} :" " ${DIRECTORY} " || true) | head --lines=1 | sed -E " s#.*${IMAGE} :([v\.0-9]*(-rootless)? ).*?#\1#" ) "
40
40
if [ " ${CURRENT_TAG} " == " " ]; then
41
41
echo " [INFO] No image reference found"
42
42
return
@@ -50,6 +50,10 @@ function update() {
50
50
fi
51
51
LATEST_TAG=" $( curl --silent --retry 3 " ${LATEST_RELEASE_URL} " | jq --raw-output " ${QUERY} " ) "
52
52
53
+ if [[ ${IMAGE} == * buildkit* ]]; then
54
+ LATEST_TAG=" ${LATEST_TAG} -rootless"
55
+ fi
56
+
53
57
echo " [INFO] Determined latest tag ${LATEST_TAG} "
54
58
55
59
# Search and modify the image tag with the latest
You can’t perform that action at this time.
0 commit comments