Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
6d8292cd
Commit
6d8292cd
authored
Aug 15, 2018
by
Yann Bizeul
Browse files
Syntax fix
parent
0575eb67
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/gitlab.sh
View file @
6d8292cd
...
@@ -32,7 +32,7 @@ gitlab_deploy() {
...
@@ -32,7 +32,7 @@ gitlab_deploy() {
else
else
Le_Deploy_gitlab_token
=
"
$GITLAB_TOKEN
"
Le_Deploy_gitlab_token
=
"
$GITLAB_TOKEN
"
_savedomainconf Le_Deploy_gitlab_token
"
$Le_Deploy_gitlab_token
"
_savedomainconf Le_Deploy_gitlab_token
"
$Le_Deploy_gitlab_token
"
fi
fi
if
[
-z
"
$GITLAB_PROJECT_ID
"
]
;
then
if
[
-z
"
$GITLAB_PROJECT_ID
"
]
;
then
if
[
-z
"
$Le_Deploy_gitlab_project_id
"
]
;
then
if
[
-z
"
$Le_Deploy_gitlab_project_id
"
]
;
then
...
@@ -42,7 +42,7 @@ gitlab_deploy() {
...
@@ -42,7 +42,7 @@ gitlab_deploy() {
else
else
Le_Deploy_gitlab_project_id
=
"
$GITLAB_PROJECT_ID
"
Le_Deploy_gitlab_project_id
=
"
$GITLAB_PROJECT_ID
"
_savedomainconf Le_Deploy_gitlab_project_id
"
$Le_Deploy_gitlab_project_id
"
_savedomainconf Le_Deploy_gitlab_project_id
"
$Le_Deploy_gitlab_project_id
"
fi
fi
if
[
-z
"
$GITLAB_DOMAIN
"
]
;
then
if
[
-z
"
$GITLAB_DOMAIN
"
]
;
then
if
[
-z
"
$Le_Deploy_gitlab_domain
"
]
;
then
if
[
-z
"
$Le_Deploy_gitlab_domain
"
]
;
then
...
@@ -52,9 +52,9 @@ gitlab_deploy() {
...
@@ -52,9 +52,9 @@ gitlab_deploy() {
else
else
Le_Deploy_gitlab_domain
=
"
$GITLAB_DOMAIN
"
Le_Deploy_gitlab_domain
=
"
$GITLAB_DOMAIN
"
_savedomainconf Le_Deploy_gitlab_domain
"
$Le_Deploy_gitlab_domain
"
_savedomainconf Le_Deploy_gitlab_domain
"
$Le_Deploy_gitlab_domain
"
fi
fi
curl
-s
--fail
--request
PUT
--header
"PRIVATE-TOKEN:
$Le_Deploy_gitlab_token
"
--form
"certificate=@
$_cfullchain
"
--form
"key=@
$_ckey
"
"https://gitlab.com/api/v4/projects/
$Le_Deploy_gitlab_project_id
/pages/domains/
$Le_Deploy_gitlab_domain
"
>
/dev/null
&&
exit
0
curl
-s
--fail
--request
PUT
--header
"PRIVATE-TOKEN:
$Le_Deploy_gitlab_token
"
--form
"certificate=@
$_cfullchain
"
--form
"key=@
$_ckey
"
"https://gitlab.com/api/v4/projects/
$Le_Deploy_gitlab_project_id
/pages/domains/
$Le_Deploy_gitlab_domain
"
>
/dev/null
&&
exit
0
# Exit curl status code if curl didn't work
# Exit curl status code if curl didn't work
exit
$?
exit
$?
...
...
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