From 43e285f57e203a0ac1b092731f5cdcbbecb291f3 Mon Sep 17 00:00:00 2001
From: Pierre Smeyers <pierre.smeyers@gmail.com>
Date: Fri, 4 Apr 2025 10:46:33 +0200
Subject: [PATCH] fix(ca): install ca-certs before importing custom CA
 certificates

Fix #51
---
 templates/gitlab-ci-semrel.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/gitlab-ci-semrel.yml b/templates/gitlab-ci-semrel.yml
index b86a171..1acc8f0 100644
--- a/templates/gitlab-ci-semrel.yml
+++ b/templates/gitlab-ci-semrel.yml
@@ -834,9 +834,9 @@ stages:
       command: ["--service", "semrel", "3.14.0"]
   before_script:
     - !reference [.semrel-scripts]
-    - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
     # install git and OpenSSH
     - maybe_install_packages ca-certificates git openssh-client gpg gpg-agent
+    - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
     - maybe_install_yq
     - cd "${SEMREL_CONFIG_DIR}"
     - prepare_semantic_release
-- 
GitLab