Skip to content

Commit

Permalink
Merge pull request #1600 from SaschaSchwarze0/sascha-filter-out-immut…
Browse files Browse the repository at this point in the history
…able

Revisit image tags in BuildAh sample build strategy
  • Loading branch information
openshift-merge-bot[bot] authored May 14, 2024
2 parents 2cb5754 + fe5ffc7 commit 6bed48b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hack/check-latest-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function update() {
# Determine the latest tag
QUERY=".tag_name"
if [[ ${IMAGE} == *buildah* ]]; then
QUERY=".tags | sort_by(.name) | reverse | .[0].name"
QUERY="[.tags[] | select(.name | endswith(\"immutable\") | not) ] | sort_by(.name) | reverse | .[0].name"
fi
LATEST_TAG="$(curl --silent --retry 3 "${LATEST_RELEASE_URL}" | jq --raw-output "${QUERY}")"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
buildSteps:
- name: build
image: quay.io/containers/buildah:v1.35.3
imagePullPolicy: Always
workingDir: $(params.shp-source-root)
securityContext:
privileged: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
buildSteps:
- name: build-and-push
image: quay.io/containers/buildah:v1.35.3
imagePullPolicy: Always
workingDir: $(params.shp-source-root)
securityContext:
capabilities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
mountPath: /s2i
- name: buildah
image: quay.io/containers/buildah:v1.35.3
imagePullPolicy: Always
workingDir: /s2i
securityContext:
privileged: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
steps:
- name: build
image: quay.io/containers/buildah:v1.35.3
imagePullPolicy: Always
workingDir: $(params.shp-source-root)
securityContext:
privileged: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ spec:
steps:
- name: build-and-push
image: quay.io/containers/buildah:v1.35.3
imagePullPolicy: Always
workingDir: $(params.shp-source-root)
securityContext:
capabilities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
mountPath: /s2i
- name: buildah
image: quay.io/containers/buildah:v1.35.3
imagePullPolicy: Always
workingDir: /s2i
securityContext:
capabilities:
Expand Down

0 comments on commit 6bed48b

Please sign in to comment.