mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 16:00:31 -05:00
ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/832222307
This commit is contained in:
parent
78e3521380
commit
326714c535
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ stages:
|
|||
- versioning
|
||||
- build
|
||||
version:
|
||||
image: ubuntu:latest
|
||||
image: ruby:latest
|
||||
stage: versioning
|
||||
script:
|
||||
- if [ -z "$VERSION" ]; then
|
||||
|
|
@ -11,7 +11,7 @@ version:
|
|||
- export COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||
- export BUILD_NUMBER=$CI_PIPELINE_ID
|
||||
- export VERSION="$VERSION.$COMMIT_COUNT.$BUILD_NUMBER"
|
||||
- echo $VERSION > version.env
|
||||
- echo "VERSION=$VERSION" > version.env
|
||||
- cat version.env
|
||||
# End of version-number.sh
|
||||
artifacts:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue