Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e6a0dd7d
Commit
e6a0dd7d
authored
Oct 09, 2018
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tag script
parent
c407fb35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
tag.sh
tag.sh
+26
-0
No files found.
tag.sh
0 → 100755
View file @
e6a0dd7d
#!/bin/bash
if
[
-z
"
$1
"
]
;
then
echo
usage:
$0
TAG
exit
1
fi
F
=
"pkg/version/base.go staging/src/k8s.io/client-go/pkg/version/base.go"
for
i
in
$F
;
do
cat
>
$i
<<
EOF
package version
var (
gitMajor = "1"
gitMinor = "12"
gitVersion = "
$1
"
gitCommit = "
$(
git rev-parse HEAD
)
"
gitTreeState = "clean"
buildDate = "
$(
date
-u
-Iminutes
)
Z"
)
EOF
done
git add
$F
git commit
-m
$1
git tag
$1
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