Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-workhorse
Commits
fff333fb
Commit
fff333fb
authored
Dec 15, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "make release" script
parent
5aa350e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
Makefile
Makefile
+3
-0
_support/release.sh
_support/release.sh
+31
-0
No files found.
Makefile
View file @
fff333fb
...
...
@@ -48,6 +48,9 @@ clean: clean-workhorse clean-build
clean-workhorse
:
cd
${BUILD_DIR}
&&
rm
-f
gitlab-workhorse gitlab-zip-cat gitlab-zip-metadata
release
:
sh _support/release.sh
.PHONY
:
clean-build
clean-build
:
rm
-rf
${BUILD_DIR}
/_build
_support/release.sh
0 → 100644
View file @
fff333fb
set
-e
remotes
=
'https://dev.gitlab.org/gitlab/gitlab-workhorse.git https://gitlab.com/gitlab-org/gitlab-workhorse.git'
main
()
{
get_version
tag_name
=
"v
${
version
}
"
git tag
-m
"Version
${
version
}
"
-a
${
tag_name
}
git show
${
tag_name
}
echo
echo
"Does this look OK? Enter 'yes' to push to
${
remotes
}
"
read
confirmation
if
[
"x
${
confirmation
}
"
!=
xyes
]
;
then
echo
"Aborting"
exit
1
fi
for
r
in
${
remotes
}
;
do
git push
"
${
r
}
"
HEAD
${
tag_name
}
done
}
get_version
()
{
v
=
$(
sed
1q VERSION
)
if
!
echo
"
${
v
}
"
|
grep
-q
'^[0-9]\+\.[0-9]\+\.[0-9]\+$'
;
then
echo
"Invalid VERSION:
${
v
}
"
exit
1
fi
version
=
"
${
v
}
"
}
main
\ No newline at end of file
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