From 8951939950a214ecf1a4b1ba21e07d8cd35f8962 Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Fri, 19 Jan 2024 09:49:18 +0100
Subject: [PATCH] Sort images in release notes

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c8b0aa6..765c3aa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -175,7 +175,7 @@ gitlab-opentofu-image:deploy:latest:
     - echo "Creating release $CI_COMMIT_TAG"
     - AVAILABLE_OPENTOFU_VERSIONS=$(yq -r '.spec.inputs.opentofu_version.options | filter((. | test("\$.*")) == false) | .[] | "- [`" + . + "`](https://github.com/opentofu/opentofu/releases/tag/v" + . + ")"' templates/full-pipeline.yml)
     - export AVAILABLE_OPENTOFU_VERSIONS
-    - AVAILABLE_IMAGES=$(cat image*.txt)
+    - AVAILABLE_IMAGES=$(cat image*.txt | sort)
     - export AVAILABLE_IMAGES
     - cat .gitlab/release-template.md | envsubst > release-notes.md 
 
-- 
GitLab