diff --git a/ci/release_notes.md b/ci/release_notes.md new file mode 100644 index 0000000..29b74e2 --- /dev/null +++ b/ci/release_notes.md @@ -0,0 +1,4 @@ +### Improvements + +- Built resource image on top of Alpine 3.20.3 +- Added new Concourse tests on version families `3.0`, `3.1`, and `3.2` diff --git a/ci/settings.yml b/ci/settings.yml index 945bf5a..1b40213 100644 --- a/ci/settings.yml +++ b/ci/settings.yml @@ -249,6 +249,57 @@ jobs: failure="true" fi + + + version_family="3.0" + + latest_version_json=$( + jq --null-input \ + --arg "family" "${version_family}" \ + '{ "source": { "family": $family } }' \ + | /opt/resource/check + ) + latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}") + + if [[ ${latest_version} != ${version_family}* ]]; then + echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'." + failure="true" + fi + + + + version_family="3.1" + + latest_version_json=$( + jq --null-input \ + --arg "family" "${version_family}" \ + '{ "source": { "family": $family } }' \ + | /opt/resource/check + ) + latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}") + + if [[ ${latest_version} != ${version_family}* ]]; then + echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'." + failure="true" + fi + + + + version_family="3.2" + + latest_version_json=$( + jq --null-input \ + --arg "family" "${version_family}" \ + '{ "source": { "family": $family } }' \ + | /opt/resource/check + ) + latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}") + + if [[ ${latest_version} != ${version_family}* ]]; then + echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'." + failure="true" + fi + if [[ ${failure} == true ]]; then exit 1 fi