From 2171212c5a31bfffc8f882716bdd503c65413eee Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 11 Mar 2023 07:08:00 +0100 Subject: [PATCH] Fix gitea development setup (#1613) --- .gitpod.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 93d89b54e1..d12a053041 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -39,7 +39,7 @@ tasks: $DOCKER_COMPOSE_CMD up -d until curl --output /dev/null --silent --head --fail http://localhost:3000; do printf '.'; sleep 1; done $GITEA_CLI_CMD admin user create --username woodpecker --password password --email woodpecker@localhost --admin - export GITEA_TOKEN=$($GITEA_CLI_CMD admin user generate-access-token -u woodpecker --raw) + export GITEA_TOKEN=$($GITEA_CLI_CMD admin user generate-access-token -u woodpecker --scopes repo,write:application --raw) GITEA_OAUTH_APP=$(curl -X 'POST' 'http://localhost:3000/api/v1/user/applications/oauth2' \ -H 'accept: application/json' -H 'Content-Type: application/json' -H "Authorization: token ${GITEA_TOKEN}" \ -d "{ \"name\": \"Woodpecker CI\", \"confidential_client\": true, \"redirect_uris\": [ \"https://8000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}/authorize\" ] }") @@ -62,6 +62,7 @@ tasks: git add . git commit -m ":tada: Initial commit" git push -u origin main + cd ../.. gp sync-done gitea $DOCKER_COMPOSE_CMD logs -f - name: App