forked from joseph/gitea_CICD
update env source
This commit is contained in:
parent
82d6753b3c
commit
42d3a298ea
|
|
@ -9,6 +9,8 @@ PASSWORD=$(echo "$GIT_PASSWORD" | sed 's/@/%40/g')
|
||||||
|
|
||||||
REPOSITORY_AUTH="https://$USERNAME:$PASSWORD@$(echo $GIT_REPOSITORY | sed 's#https://##')"
|
REPOSITORY_AUTH="https://$USERNAME:$PASSWORD@$(echo $GIT_REPOSITORY | sed 's#https://##')"
|
||||||
|
|
||||||
|
echo "$REPOSITORY_AUTH"
|
||||||
|
|
||||||
cd "$PROJECT_PATH" &&
|
cd "$PROJECT_PATH" &&
|
||||||
git config --global --add safe.directory $PROJECT_PATH &&
|
git config --global --add safe.directory $PROJECT_PATH &&
|
||||||
SET_ORIGIN=$(git remote set-url origin $REPOSITORY_AUTH) &&
|
SET_ORIGIN=$(git remote set-url origin $REPOSITORY_AUTH) &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue