mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 11:21:02 +00:00
Fix gitea development setup (#1613)
This commit is contained in:
parent
dc90f97524
commit
2171212c5a
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,7 @@ tasks:
|
||||||
$DOCKER_COMPOSE_CMD up -d
|
$DOCKER_COMPOSE_CMD up -d
|
||||||
until curl --output /dev/null --silent --head --fail http://localhost:3000; do printf '.'; sleep 1; done
|
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
|
$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' \
|
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}" \
|
-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\" ] }")
|
-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 add .
|
||||||
git commit -m ":tada: Initial commit"
|
git commit -m ":tada: Initial commit"
|
||||||
git push -u origin main
|
git push -u origin main
|
||||||
|
cd ../..
|
||||||
gp sync-done gitea
|
gp sync-done gitea
|
||||||
$DOCKER_COMPOSE_CMD logs -f
|
$DOCKER_COMPOSE_CMD logs -f
|
||||||
- name: App
|
- name: App
|
||||||
|
|
Loading…
Reference in a new issue