Skip to content
Snippets Groups Projects
Commit 93a9be7c authored by Marco De Donno's avatar Marco De Donno
Browse files

Use the default gitlab env variables instead of re-defining them

parent 73f476ec
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,8 @@ build: ...@@ -15,8 +15,8 @@ build:
script: script:
- echo "__branch__ = '${CI_COMMIT_REF_NAME}'" > ./web/app/version.py - echo "__branch__ = '${CI_COMMIT_REF_NAME}'" > ./web/app/version.py
- echo "__commit__ = '${CI_COMMIT_SHA}'" >> ./web/app/version.py - echo "__commit__ = '${CI_COMMIT_SHA}'" >> ./web/app/version.py
- echo "__commiturl__ = '${GIT_PROJECT_URL}/commit/${CI_COMMIT_SHA}'" >> ./web/app/version.py - echo "__commiturl__ = '${CI_PROJECT_URL}/commit/${CI_COMMIT_SHA}'" >> ./web/app/version.py
- echo "__treeurl__ = '${GIT_PROJECT_URL}/tree/${CI_COMMIT_SHA}'" >> ./web/app/version.py - echo "__treeurl__ = '${CI_PROJECT_URL}/tree/${CI_COMMIT_SHA}'" >> ./web/app/version.py
- echo "__date__ = '$(git show -s --format=%ci $CI_COMMIT_SHA)'" >> ./web/app/version.py - echo "__date__ = '$(git show -s --format=%ci $CI_COMMIT_SHA)'" >> ./web/app/version.py
- echo "__version__ = __branch__ + ' - ' + __commit__[ 0:8 ] + ' - ' + __date__ " >> ./web/app/version.py - echo "__version__ = __branch__ + ' - ' + __commit__[ 0:8 ] + ' - ' + __date__ " >> ./web/app/version.py
- echo "__author_name__ = '$(git show -s --format=%an $CI_COMMIT_SHA)'" >> ./web/app/version.py - echo "__author_name__ = '$(git show -s --format=%an $CI_COMMIT_SHA)'" >> ./web/app/version.py
......
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