Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
k3s
Commits
937d546a
Unverified
Commit
937d546a
authored
3 years ago
by
Rick Mesta
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
NAS-116011 / 22.02.1 / Merge pull request #22 from truenas/fix-tag-issue-22
Fix version scheme issues for containerd
parents
93e32a81
c6ef8622
release/22.02.1
TS-22.02.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/version.sh
+5
-3
scripts/version.sh
with
5 additions
and
3 deletions
+5
-3
scripts/version.sh
View file @
937d546a
...
...
@@ -8,9 +8,11 @@ TREE_STATE=clean
COMMIT
=
$DRONE_COMMIT
if
[
-d
.git
]
;
then
if
[
-z
"
$GIT_TAG
"
]
;
then
GIT_TAG
=
$(
git tag
-l
--contains
HEAD |
head
-n
1
)
fi
# We comment out the version tag bit as our versioning scheme is not liked by containerd and it fails to start
# So we instead rely on the git commit hash to identify the k3s version running in the scale system
# if [ -z "$GIT_TAG" ]; then
# GIT_TAG=$(git tag -l --contains HEAD | head -n 1)
# fi
if
[
-n
"
$(
git status
--porcelain
--untracked-files
=
no
)
"
]
;
then
DIRTY
=
"-dirty"
TREE_STATE
=
dirty
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help