Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DAACDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syed Bilal Raees
DAACDemo
Commits
0f3c9167
Commit
0f3c9167
authored
Apr 04, 2023
by
Waqas Riaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added versioning
parent
bfde5dc5
Pipeline
#4033
failed
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
.gitlab-ci.yml
.gitlab-ci.yml
+11
-1
VERSION
VERSION
+1
-0
increment-version.sh
increment-version.sh
+11
-0
version.txt
version.txt
+1
-1
No files found.
.gitlab-ci.yml
View file @
0f3c9167
stages
:
stages
:
-
increment_version
-
build
-
build
-
deploy
-
deploy
increment_version
:
stage
:
version
script
:
-
git pull
-
./increment-version.sh
-
git add VERSION
-
git commit -m "Bump version to $(cat VERSION)"
-
git push
build_job
:
build_job
:
stage
:
build
stage
:
build
before_script
:
before_script
:
...
...
VERSION
0 → 100644
View file @
0f3c9167
increment-version.sh
0 → 100755
View file @
0f3c9167
#!/bin/bash
# Read the current version number from the VERSION file
VERSION
=
$(
cat
VERSION
)
# Increment the version number
NEW_VERSION
=
$(
echo
$VERSION
|
awk
-F
.
'{$NF = $NF + 1;} 1'
OFS
=
.
|
sed
's/.$//'
)
# Update the VERSION file with the new version number
echo
$NEW_VERSION
>
VERSION
version.txt
View file @
0f3c9167
2.7
0.
2.7
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment