debug: use diffierent FORGEJO_USER1_ACCESS_TOKEN_FILE_PATH based on env
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

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

View file

@ -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