Fix gitHost & co
This commit is contained in:
parent
6ea0a3a7f0
commit
bd4554f0c7
4 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
||||||
.gitignore
|
.gitignore
|
||||||
.openapi-generator-ignore
|
|
||||||
.travis.yml
|
.travis.yml
|
||||||
README.md
|
README.md
|
||||||
api/openapi.yaml
|
api/openapi.yaml
|
||||||
|
|
|
@ -25,7 +25,7 @@ go get golang.org/x/net/context
|
||||||
Put the package under your project folder and add the following in import:
|
Put the package under your project folder and add the following in import:
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
import garage "github.com/GIT_USER_ID/GIT_REPO_ID"
|
import garage "git.deuxfleurs.fr/quentin/garage-admin-sdk-golang"
|
||||||
```
|
```
|
||||||
|
|
||||||
To use a proxy, set the environment variable `HTTP_PROXY`:
|
To use a proxy, set the environment variable `HTTP_PROXY`:
|
||||||
|
|
|
@ -9,17 +9,17 @@ release_note=$3
|
||||||
git_host=$4
|
git_host=$4
|
||||||
|
|
||||||
if [ "$git_host" = "" ]; then
|
if [ "$git_host" = "" ]; then
|
||||||
git_host="github.com"
|
git_host="git.deuxfleurs.fr"
|
||||||
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_user_id" = "" ]; then
|
if [ "$git_user_id" = "" ]; then
|
||||||
git_user_id="GIT_USER_ID"
|
git_user_id="quentin"
|
||||||
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$git_repo_id" = "" ]; then
|
if [ "$git_repo_id" = "" ]; then
|
||||||
git_repo_id="GIT_REPO_ID"
|
git_repo_id="garage-admin-sdk-golang"
|
||||||
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.com/GIT_USER_ID/GIT_REPO_ID
|
module git.deuxfleurs.fr/quentin/garage-admin-sdk-golang
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue