Update .gitlab-ci.yml file

This commit is contained in:
Lee 2023-03-08 14:17:02 +00:00
parent 2c7b5985dd
commit 462a823855

@ -9,8 +9,6 @@ before_script:
# - echo `pwd` # debug # - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug # - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
- export GRADLE_USER_HOME=`pwd`/.gradle - export GRADLE_USER_HOME=`pwd`/.gradle
- export VERSION=$CI_COMMIT_TAG
prepare_job: prepare_job:
stage: prepare # This stage must run before the release stage stage: prepare # This stage must run before the release stage
rules: rules:
@ -51,9 +49,9 @@ release:
when: never # Do not run this job when a tag is created manually when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
script: script:
- echo "running release for $TAG" - echo "running release for v1"
release: release:
name: 'Release $TAG' name: 'Release v1'
description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG
tag_name: '$TAG' # variables must be defined elsewhere tag_name: 'v1' # variables must be defined elsewhere
ref: '$CI_COMMIT_SHA' # in the pipeline. For example, in the ref: '$CI_COMMIT_SHA' # in the pipeline. For example, in the