-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add gitpod setup #1020
add gitpod setup #1020
Conversation
@6543 I added this Gitpod config. Gitpod is a pretty cool tool which I used a lot recently to quickly start a development of a project. Its basically a VS-Code in the cloud like Github Workspaces etc. I think it would help especially first-time contributors a lot. The setup works already, but my idea was to automatically start a Woodpecker server & agent and a Gitea instance. To be able to automatically start Woodpecker we need the oauth credentials from Gitea. Do you know a nice way to create & get those credentials or should I simply do a super simple setup of Gitea and store that minimal setup as sqlite file to the repo? |
Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-1020.surge.sh |
So I had the almost same problem, automate woodpecker + gitea deployment on ansible. The next gitea version has a flag on the CLI for that exact purpose. Once you get the token, you can use curl to trigger any API call and configure gitea (so create user, create application, etc). For example, my plan was to use "user/userCreateOAuth2Application" to create a application (and create some kind of system user). |
That looks pretty cool. How did you pass the initial admin account creation and database setup screen by this? Is it gone after creating the first user 🤔 |
I write the app.ini file myself, using a template. The trick (if I remeber well) is to set install_lock to True. And you can create a user directly with the cli, I think |
Codecov Report
@@ Coverage Diff @@
## master #1020 +/- ##
==========================================
+ Coverage 50.51% 50.55% +0.03%
==========================================
Files 82 82
Lines 6263 6268 +5
==========================================
+ Hits 3164 3169 +5
Misses 2916 2916
Partials 183 183
Continue to review full report at Codecov.
|
Adding Gitpod allows us and others to easily start a complete Woodpecker setup and development cloud IDE. It starts a Woodpecker server, agent and a preconfigured Gitea instance. You can login at Gitea with
woodpecker
andpassword
.