From cd9ecc908d457b6bf759121b24f8fdcede9d376c Mon Sep 17 00:00:00 2001 From: Diego Augusto Molina Date: Mon, 29 Jul 2024 08:46:05 -0300 Subject: [PATCH] CI: Release/RPM pkg verification - Fix linefeeds converted to literal backslash-n sequences (#91097) fix lf converted to literal backslash-n sequence --- .drone.yml | 6 +++--- scripts/drone/steps/lib.star | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 51f954c231e..92695e0d65c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3021,7 +3021,7 @@ steps: - rpm --import https://rpm.grafana.com/gpg.key - 'echo "Step 4: Configuring Grafana repository..."' - |- - echo '[grafana] + echo -e '[grafana] name=grafana baseurl=https://rpm.grafana.com repo_gpgcheck=0 @@ -3199,7 +3199,7 @@ steps: - rpm --import https://rpm.grafana.com/gpg.key - 'echo "Step 4: Configuring Grafana repository..."' - |- - echo '[grafana] + echo -e '[grafana] name=grafana baseurl=https://rpm.grafana.com repo_gpgcheck=0 @@ -5122,6 +5122,6 @@ kind: secret name: gcr_credentials --- kind: signature -hmac: b8a7c860c2127b3c02b83424f07e1287c6314d80c28718451bd9f22cefd498cb +hmac: 79c8b6e1ad457ee594dd75148dc2623fe89a982b42f210ab53b0f9809b859acb ... diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index 226db199883..e9c16602934 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -1219,7 +1219,7 @@ def verify_linux_RPM_packages_step(depends_on = []): 'echo "Step 3: Adding Grafana GPG key..."', "rpm --import https://rpm.grafana.com/gpg.key", 'echo "Step 4: Configuring Grafana repository..."', - "echo '" + repo_config + "' > /etc/yum.repos.d/grafana.repo", + "echo -e '" + repo_config + "' > /etc/yum.repos.d/grafana.repo", 'echo "Step 5: Checking RPM repository..."', "dnf list available grafana-${TAG}", "if [ $? -eq 0 ]; then",