File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -227,10 +227,26 @@ publish_images_task:
227227 popd
228228
229229 gh auth login --with-token <<<"$RELEASE_TOKEN"
230+
231+ if [[ $CIRRUS_TAG == *-rc* ]]; then
232+ RC="--prerelease"
233+ else
234+ # check if this version should not be marked latest
235+ prevvers=$(gh api repos/containers/podman-machine-os/releases/latest --jq '.tag_name')
236+ echo "${prevvers},${CIRRUS_TAG}"
237+ # sort -V -C returns 0 if args are ascending version order
238+ if !(echo "${prevvers},${CIRRUS_TAG}" | tr ',' '\n' | sort -V -C)
239+ then
240+ LATEST="--latest=false"
241+ fi
242+ fi
243+
230244 gh release create $CIRRUS_TAG \
231245 -t $CIRRUS_TAG \
232246 --notes "$CIRRUS_TAG release images" \
233247 --verify-tag \
248+ $RC \
249+ $LATEST \
234250 $OUTDIR/*
235251 gh auth logout
236252 fi
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ mkdir -p ./rpms
2525set +e
2626if [[ ${PODMAN_PR_NUM} != " " ]]; then
2727 pushd ./rpms
28- for pkg in container-selinux crun;
28+ for pkg in crun;
2929 do
3030 for tag in " ${FEDORA_VERSION} " -updates-candidate " ${FEDORA_VERSION} " -updates-testing " ${FEDORA_VERSION} " -updates-testing-pending;
3131 do
You can’t perform that action at this time.
0 commit comments