From 3b2d47b1e39f9ff5a3bb47ca5f4abbc85fee7944 Mon Sep 17 00:00:00 2001 From: Amelia Yukii Date: Thu, 1 Feb 2024 13:35:30 +0000 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c156329c..9e09f2207 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,14 +41,17 @@ getImageTag: tag="$CI_COMMIT_TAG" elif test "$CI_COMMIT_BRANCH" == "stable"; then tag="latest" + version="$(cat package.json | jq -r '.version'), stable" elif test "$CI_COMMIT_BRANCH" == "develop"; then tag="develop" + version=$(cat package.json | jq -r '.version') else tag="$CI_COMMIT_BRANCH" - fi - version=$(cat package.json | jq -r '.version') + version=$(cat package.json | jq -r '.version') + fi - echo "REGISTRY_PUSH_TAG=$tag" >> build.env - echo "REGISTRY_PUSH_VERSION=$version" >> build.env + artifacts: reports: dotenv: build.env