Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Joy
VuhDo
Commits
7268b001
Commit
7268b001
authored
5 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Modify packager to release to gitlab.vuhdo.io rather than gitlab.com
parent
95dbf11d
master
classic
revert-ae0b90ef
shadowlands
v3.114-classic-beta-9
v3.114-classic-beta-7
v3.114-classic-beta-6
v3.114-classic-beta-5
v3.114-classic-beta-4
v3.114-classic-beta-3
v3.114-classic-beta-2
v3.114-classic-beta-1
v3.114-classic-alpha-2
v3.114-classic-alpha-1
v3.114-beta-9
v3.114-beta-8
v3.114-beta-7
v3.114-beta-7-1
v3.114-beta-6
v3.114-beta-5
v3.114-beta-4
v3.114-beta-3
v3.114-beta-2
v3.114-beta-1
v3.114-alpha-2
v3.114-alpha-1
v3.113
v3.113-classic
v3.113-classic-beta-1
v3.113-classic-alpha-1
v3.113-beta-1
v3.113-alpha-1
v3.112
v3.112-classic
v3.112-classic-beta-1
v3.112-classic-alpha-3
v3.112-classic-alpha-2
v3.112-classic-alpha-1
v3.112-beta-1
v3.112-alpha-3
v3.112-alpha-2
v3.112-alpha-1
v3.111
v3.111-classic
v3.111-classic-beta-3
v3.111-classic-beta-2
v3.111-classic-beta-1
v3.111-classic-alpha-8
v3.111-classic-alpha-7
v3.111-classic-alpha-6
v3.111-classic-alpha-5
v3.111-classic-alpha-4
v3.111-classic-alpha-3
v3.111-classic-alpha-2
v3.111-classic-alpha-1
v3.111-beta-3
v3.111-beta-2
v3.111-beta-1
v3.111-alpha-8
v3.111-alpha-7
v3.111-alpha-6
v3.111-alpha-5
v3.110
v3.110-classic
v3.110-classic-beta-1
v3.110-classic-alpha-4
v3.110-classic-alpha-3
v3.110-classic-alpha-2
v3.110-classic-alpha-1
v3.110-beta-1
v3.110-alpha-4
v3.110-alpha-3
v3.110-alpha-2
v3.109
v3.109-classic
v3.109-classic-beta-1
v3.109-classic-alpha-2
v3.109-classic-alpha-1
v3.109-beta-1
v3.109-alpha-2
v3.109-alpha-1
v3.108
v3.108-classic
v3.108-classic-alpha-7
v3.108-classic-alpha-6
v3.108-classic-alpha-5
v3.108-classic-alpha-4
v3.108-classic-alpha-3
v3.108-classic-alpha-2
v3.108-classic-alpha-1
v3.108-alpha-1
v3.107-classic
v3.107-classic-beta-9
v3.107-classic-beta-8
v3.107-classic-beta-7
v3.107-classic-beta-6
v3.107-classic-beta-5
v3.107-classic-alpha-18
v3.107-classic-alpha-17
v3.107-classic-alpha-16
v3.107-classic-alpha-15
v3.107-classic-alpha-14
v3.107-classic-alpha-13
v3.107-classic-alpha-12
v3.107-classic-alpha-11
v3.107-classic-alpha-10
v3.107-classic-alpha-9
v3.107-classic-alpha-8
v3.107-classic-alpha-7
v3.107-classic-alpha-6
v3.107-classic-alpha-5
v3.107-classic-alpha-4
v3.107-classic-alpha-3
v3.107-classic-alpha-2
v3.107-classic-alpha-1
v3.107-4
v3.107-3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
.release/release.sh
.release/release.sh
+8
-8
No files found.
.release/release.sh
View file @
7268b001
...
...
@@ -554,9 +554,9 @@ if [ -n "$ghgl_infer" ]; then
github_url
=
${
si_repo_url
%.git
}
github_slug
=
${
github_url
#https
://github.com/
}
fi
if
[[
-z
"
$gitlab_slug
"
&&
"
$si_repo_url
"
==
"https://gitlab.
com
"
*
]]
;
then
if
[[
-z
"
$gitlab_slug
"
&&
"
$si_repo_url
"
==
"https://gitlab.
vuhdo.io
"
*
]]
;
then
gitlab_url
=
${
si_repo_url
%.git
}
gitlab_slug
=
${
gitlab_url
#https
://gitlab.
com
/
}
gitlab_slug
=
${
gitlab_url
#https
://gitlab.
vuhdo.io
/
}
fi
github_slug
=
${
github_slug
:-
$gitlab_slug
}
...
...
@@ -567,7 +567,7 @@ if [ -n "$github_slug" ]; then
github_url
=
"https://github.com/
$github_slug
"
fi
if
[
-n
"
$gitlab_slug
"
]
;
then
gitlab_url
=
"https://gitlab.
com
/
$gitlab_slug
"
gitlab_url
=
"https://gitlab.
vuhdo.io
/
$gitlab_slug
"
fi
githost_url
=
${
github_url
:-
$gitlab_url
}
...
...
@@ -2455,12 +2455,12 @@ if [ -z "$skip_upload" ]; then
-w
"%{http_code}"
-o
"
$_glf_resultfile
"
\
-H
"PRIVATE-TOKEN:
$gitlab_token
"
\
-F
"file=@
$_glf_file_path
"
\
"https://gitlab.
com
/api/v4/projects/
$gitlab_id
/uploads"
)
"https://gitlab.
vuhdo.io
/api/v4/projects/
$gitlab_id
/uploads"
)
if
[
$?
-eq
0
]
;
then
if
[
"
$result
"
-eq
"201"
]
;
then
echo
"Success!"
_glf_file_url
=
$(
cat
"
$_glf_resultfile
"
| jq
'.url'
)
gitlab_assets
=
"
${
gitlab_assets
:+,
}
{
\"
name
\"
:
\"
$_glf_file_name
\"
,
\"
url
\"
:
\"
https://gitlab.
com
/
$gitlab_slug
${
_glf_file_url
:1:-1
}
\"
}"
gitlab_assets
=
"
${
gitlab_assets
:+,
}
{
\"
name
\"
:
\"
$_glf_file_name
\"
,
\"
url
\"
:
\"
https://gitlab.
vuhdo.io
/
$gitlab_slug
${
_glf_file_url
:1:-1
}
\"
}"
else
echo
"Error (
$result
)"
if
[
-s
"
$_ghf_resultfile
"
]
;
then
...
...
@@ -2480,7 +2480,7 @@ if [ -z "$skip_upload" ]; then
# Upload archives
if
upload_gitlab_asset
"
$archive_name
"
"
$archive
"
&&
{
[[
!
-f
"
$nolib_archive
"
]]
||
upload_gitlab_asset
"
$nolib_archive_name
"
"
$nolib_archive
"
;
}
then
# delete existing release for the tag
curl
-sS
-X
DELETE
-H
"PRIVATE-TOKEN:
$gitlab_token
"
"https://gitlab.
com
/api/v4/projects/
$gitlab_id
/releases/
$tag
"
>
/dev/null
curl
-sS
-X
DELETE
-H
"PRIVATE-TOKEN:
$gitlab_token
"
"https://gitlab.
vuhdo.io
/api/v4/projects/
$gitlab_id
/releases/
$tag
"
>
/dev/null
_gl_payload
=
$(
cat
<<-
EOF
{
...
...
@@ -2492,14 +2492,14 @@ if [ -z "$skip_upload" ]; then
EOF
)
echo
"Creating GitLab release: https://gitlab.
com
/
$gitlab_slug
/releases"
echo
"Creating GitLab release: https://gitlab.
vuhdo.io
/
$gitlab_slug
/releases"
resultfile
=
"
$releasedir
/gl_result.json"
result
=
$(
curl
-sS
--retry
3
--retry-delay
10
\
-w
"%{http_code}"
-o
"
$resultfile
"
\
-H
"PRIVATE-TOKEN:
$gitlab_token
"
\
-H
"Content-Type: application/json"
\
-d
"
$_gl_payload
"
\
"https://gitlab.
com
/api/v4/projects/
$gitlab_id
/releases"
)
"https://gitlab.
vuhdo.io
/api/v4/projects/
$gitlab_id
/releases"
)
if
[
$?
-eq
0
]
;
then
if
[
"
$result
"
=
"201"
]
;
then
echo
"Success!"
...
...
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