From 9350c9ed0abcc5f32c8c202a6fd4482ee39d5760 Mon Sep 17 00:00:00 2001 From: Brian Lockwood Date: Wed, 19 Mar 2025 14:23:41 -0700 Subject: [PATCH] fix: publishing version --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5e65c66..447039e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -166,7 +166,7 @@ create-operator-json: artifacts: true script: - | - export CI_COMMIT_TAG="operator/v1.0.0" + export version="${CI_COMMIT_TAG#operator/}" cat > operator.json << EOF { "skyhook": { @@ -181,7 +181,7 @@ create-operator-json: "artifacts": [ { "name": "operator", - "version": "${CI_COMMIT_TAG#operator/}", + "version": "${version}", "type": "container" } ] @@ -200,7 +200,7 @@ create-agent-json: artifacts: true script: - | - export CI_COMMIT_TAG="agent/v1.0.0" + export version="${CI_COMMIT_TAG#agent/}" cat > agent.json << EOF { "skyhook": { @@ -215,7 +215,7 @@ create-agent-json: "artifacts": [ { "name": "agent", - "version": "${CI_COMMIT_TAG#agent/}", + "version": "${version}", "type": "container" } ]