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
15878d1b
Commit
15878d1b
authored
Dec 16, 2016
by
Nick Thomas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'make-release' into 'master'
Add "make release" script See merge request !99
parents
5aa350e3
fff333fb
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 @
15878d1b
...
@@ -48,6 +48,9 @@ clean: clean-workhorse clean-build
...
@@ -48,6 +48,9 @@ clean: clean-workhorse clean-build
clean-workhorse
:
clean-workhorse
:
cd
${BUILD_DIR}
&&
rm
-f
gitlab-workhorse gitlab-zip-cat gitlab-zip-metadata
cd
${BUILD_DIR}
&&
rm
-f
gitlab-workhorse gitlab-zip-cat gitlab-zip-metadata
release
:
sh _support/release.sh
.PHONY
:
clean-build
.PHONY
:
clean-build
clean-build
:
clean-build
:
rm
-rf
${BUILD_DIR}
/_build
rm
-rf
${BUILD_DIR}
/_build
_support/release.sh
0 → 100644
View file @
15878d1b
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