debug: use diffierent FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH based on env
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
0450c90967
commit
a049fdc511
1 changed files with 3 additions and 1 deletions
|
@ -15,8 +15,11 @@ if is_ci
|
||||||
then
|
then
|
||||||
FORGEJO_URL="http://forgejo:3000"
|
FORGEJO_URL="http://forgejo:3000"
|
||||||
FORGEJO_SSH_URL="ssh://git@forgejo:22"
|
FORGEJO_SSH_URL="ssh://git@forgejo:22"
|
||||||
|
mkdir /woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/tmp/
|
||||||
|
FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=/woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/tmp/user1-accesstoken.json
|
||||||
else
|
else
|
||||||
FORGEJO_URL="http://localhost:3000"
|
FORGEJO_URL="http://localhost:3000"
|
||||||
|
FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=$(realpath tmp/user1-accesstoken.json)
|
||||||
FORGEJO_SSH_URL="ssh://git@localhost:22"
|
FORGEJO_SSH_URL="ssh://git@localhost:22"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -29,7 +32,6 @@ readonly FORGEJO_USER1_PASSWORD=supercomplicatedpassword
|
||||||
readonly FORGEJO_USER1_EMAIL="$FORGEJO_USER1_USERNAME@example.org"
|
readonly FORGEJO_USER1_EMAIL="$FORGEJO_USER1_USERNAME@example.org"
|
||||||
readonly FORGEJO_USER1_SUPPORT_REPO="support"
|
readonly FORGEJO_USER1_SUPPORT_REPO="support"
|
||||||
readonly FORGEJO_USER1_ACCESS_TOKEN_NAME="coreaccesstoken"
|
readonly FORGEJO_USER1_ACCESS_TOKEN_NAME="coreaccesstoken"
|
||||||
readonly FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=$(realpath tmp/user1-accesstoken.json)
|
|
||||||
rm $FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH || true
|
rm $FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH || true
|
||||||
|
|
||||||
readonly FORGEJO_TESTUSER_USERNAME=test_user
|
readonly FORGEJO_TESTUSER_USERNAME=test_user
|
||||||
|
|
Loading…
Reference in a new issue