Update .gitlab-ci.yml file

This commit is contained in:
Lee 2023-03-08 14:14:04 +00:00
parent c42a0550fe
commit 2c7b5985dd

@ -18,7 +18,7 @@ prepare_job:
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 "TAG=v$(cat VERSION)" >> variables.env # and append to the variables.env file - echo "TAG=RELEASE" >> variables.env # and append to the variables.env file
artifacts: artifacts:
reports: reports:
dotenv: variables.env # Use artifacts:reports:dotenv to expose the variables to other jobs dotenv: variables.env # Use artifacts:reports:dotenv to expose the variables to other jobs