debug: use diffierent FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH based on env
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Aravinth Manivannan 2023-09-19 01:50:20 +05:30
parent 0450c90967
commit a049fdc511
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
1 changed files with 3 additions and 1 deletions

View File

@ -15,8 +15,11 @@ if is_ci
then
FORGEJO_URL="http://forgejo:3000"
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
FORGEJO_URL="http://localhost:3000"
FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH=$(realpath tmp/user1-accesstoken.json)
FORGEJO_SSH_URL="ssh://git@localhost:22"
fi
@ -29,7 +32,6 @@ readonly FORGEJO_USER1_PASSWORD=supercomplicatedpassword
readonly FORGEJO_USER1_EMAIL="$FORGEJO_USER1_USERNAME@example.org"
readonly FORGEJO_USER1_SUPPORT_REPO="support"
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
readonly FORGEJO_TESTUSER_USERNAME=test_user