Skip to content
Snippets Groups Projects
Commit 3b2d47b1 authored by Amelia Yukii's avatar Amelia Yukii
Browse files

Update file .gitlab-ci.yml

parent 2811f4cc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment