Commit graph

4666 commits

Author SHA1 Message Date
Robert Kaussow
c0216deb43
Return to users list after creating a new user (#2029)
Fixes:
https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1503635132
2023-07-24 19:05:18 +02:00
6543
b3c2bb2e15
disable building windows container images 2023-07-22 01:04:48 +02:00
6543
914eaa0cf8
Add Changelog for v1.0.0 RC1 (#1854)
add changelog for the v1.0.0 release candidate
2023-07-21 22:07:31 +02:00
lonix1
a143ef4779
docs: advanced pipeline management (#2018)
Various ways to factor out common data in a pipeline file - having them
in one place rather than spread out over many pages, will help newbies
like me.
2023-07-21 21:58:17 +02:00
6543
4d2f824fb8
fix docs nits (#2025) 2023-07-21 21:56:24 +02:00
Anbraten
e5d5ec8b47
Use id to access orgs (#1873)
closes #1743 

fixes: setting secrets for own user namespace

- create org in database
- use orgID for org related APIs

Co-authored-by: 6543 <6543@obermui.de>
2023-07-21 19:45:32 +02:00
6543
aec2051071
Fix "check_swagger" step (#2024) 2023-07-20 22:12:32 +02:00
6543
3cd78c9409
Refactor agent (#2021)
- code cleanup
- init backend engine only once
- pass a taskUUID to the backend

---
*Sponsored by Kithara Software GmbH*
2023-07-20 20:39:20 +02:00
6543
f464156917
Enhance development on windows (#2022)
- make sure git store files with LF on windows too
- append .exe on windows as target for build targets too
2023-07-20 20:06:09 +03:00
6543
3a85559763
Remove code to read agent-id.conf (#2009)
I want to have c805c87e90 published at
least for 2 days ...
... so the migration did happen
2023-07-19 22:09:06 +02:00
6543
2e851ba4a0
Release windows build for server too (#2012)
and other build enhancements
2023-07-18 18:46:27 +02:00
6543
572449b845
make pending pipelines cancable (#2013)
in some edgecases we get pipelines that we can not cancle via WebUI.

fix https://codeberg.org/Codeberg-CI/feedback/issues/126
2023-07-18 06:12:17 +02:00
6543
a890a0d4d4
Move securitychecks into own workflow (#1753) 2023-07-17 21:32:05 +02:00
Michalis Zampetakis
dcba48f916
Add bitbucket forge BranchHead implementation (#2011)
In order to test this functionality, we had to expose the `BranchHead()`
through an API endpoint
```
GET /repos/{repo_id}/branches/{branch}/head
```

The response is a string that contains the latest commit hash of the
requested branch.
2023-07-17 21:30:06 +02:00
6543
c805c87e90
fix write agent config 2023-07-17 14:53:02 +02:00
Lauris BH
724a3bf56e
Fix agent config reading error handling (#2008)
Currently for non-existing config file it would report error instead of info message
2023-07-17 14:22:32 +02:00
6543
1b646a28b4
Index stepID for logEntries so loading time decrease significantly (#2006)
speedup from 2min loading to 0.01sec :D

got missed by  #1802
2023-07-17 02:35:20 +03:00
Robert Kaussow
0c46ba4d80
Add option to configure the vite dev server host (#2005)
If you want to run the vite dev server in a container, it needs to be
exposed to `0.0.0.0`.
2023-07-16 21:31:36 +02:00
Robert Kaussow
37fcc26330
Use unified rounded corners for all elements in the nav bar (#2000)
Nav bar:
![Bildschirmfoto vom 2023-07-15
13-43-18](https://github.com/woodpecker-ci/woodpecker/assets/3391958/addb0064-b230-412c-9aae-fbfa8c39b839)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/21e08079-864d-425a-a4e3-17009094b2c6)

![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/433bf33b-2124-434b-9f16-e5f586f4d4ec)

Other icon buttons:
![Bildschirmfoto vom 2023-07-15
13-50-18](https://github.com/woodpecker-ci/woodpecker/assets/3391958/c070b09d-2700-4eac-97ed-b4bef42ea3e6)
2023-07-15 15:47:15 +02:00
Robert Kaussow
443c23c58a
Use global logger for xorm logs and add options (#1997)
Please let me know if this goes in the right direction. Needs some tests and docs.
2023-07-15 01:15:13 +02:00
Robert Kaussow
669abdf690
Add makefile to make container and .pnpn-store to gitignore (#1996)
Running `make in_docker ...` on a fresh system failed:

```
 => CACHED [stage-1 3/6] COPY --from=golang_image /usr/local/go /usr/local/go                                                                                                                                                                            0.0s
 => ERROR [stage-1 4/6] RUN make install-tools &&   mv /root/go/bin/* /usr/local/go/bin/ &&   chmod 755 /usr/local/go/bin/*                                                                                                                              0.1s
------                                                                                                                                                                                                                                                        
 > [stage-1 4/6] RUN make install-tools &&   mv /root/go/bin/* /usr/local/go/bin/ &&   chmod 755 /usr/local/go/bin/*:
0.132 make: *** No rule to make target 'install-tools'.  Stop.
------
Dockerfile.make:14
--------------------
  13 |     # Cache tools
  14 | >>> RUN make install-tools && \
  15 | >>>   mv /root/go/bin/* /usr/local/go/bin/ && \
  16 | >>>   chmod 755 /usr/local/go/bin/*
  17 |     
--------------------
```

Fixed after adding the Makefile to the make container.
2023-07-14 16:14:00 +02:00
6543
d9991e67e5
let HookParse func explicit ignore events (#1942)
for now it's not clear defined, what to do on an unsupported event.
e.g. gitea webhook panel shows 500 error and no message.

now we have a successful webhook and a message to show an info
2023-07-14 02:03:54 +02:00
Patrick Schratz
004d72a853
Link swagger in navbar (#1984)
fix point 1 from #1944 

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-07-13 20:34:02 +02:00
qwerty287
a778b5fb90
Do not use window.WOODPECKER_* variables directly (#1992)
use the config helper instead
2023-07-13 15:57:50 +02:00
qwerty287
570f5044e8
Drop support for Bitbucket Server (#1994)
Closes #1962
2023-07-13 15:47:25 +02:00
6543
874c2ea114
Changelog v0.15.11 (#1991)
frontport changelog
2023-07-13 08:45:05 +02:00
6543
87cef4177c
fix pipeline 2023-07-12 23:31:59 +02:00
6543
ad8f0cd92b
fix pipeline 2023-07-12 23:27:22 +02:00
Patrick Schratz
308d88fae5
Run workflows only for PRs and master (#1983)
fix #1980

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-07-12 23:25:05 +02:00
6543
8d62578846
Fix deploy docs after branch rename 2023-07-12 22:00:52 +02:00
6543
fa951a8e95
Add agent config file (#1971) 2023-07-12 18:51:40 +02:00
Patrick Schratz
a4c791c6e5
Correct wording (#1982) 2023-07-12 13:49:18 +02:00
Anbraten
2432abd379
Add a blog (#1978)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2023-07-11 23:31:45 +02:00
Patrick Schratz
41f53024c1
Bump alpine image for preview (#1981) 2023-07-11 23:02:05 +02:00
Patrick Schratz
4226f7d158
Rebuild docs for api changes and add deploy preview (#1979) 2023-07-11 22:52:18 +02:00
6543
edb92025df
Correct api docs of PostRepo & GetRepos (#1974)
... and report if needed forge_remote_id is not valid
2023-07-11 18:51:03 +02:00
6543
e85eeb10fc
Fix repo gate protection (#1969)
- clarify docs
- don't block cron pipelines
- run manual triggered pipelines right away

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-07-11 17:34:50 +02:00
6543
b54f6ebad6
Let pipeline-compiler export step types (#1958) 2023-07-11 15:53:05 +02:00
Robert Kaussow
fe7eb64bf9
Add option to read grpc-secret from file (#1972) 2023-07-10 23:53:02 +02:00
6543
7b97e27fea
docker: use uuid instead of name as identifyer (#1967)
close #1959
2023-07-10 17:59:25 +02:00
6543
1eb3c033ea
increase timeout for test-server-datastore 2023-07-10 16:03:37 +02:00
6543
a6d2c78916
Speedup pipeline (#1966)
- only build preview images for x86
- do not run `test` and `web` on default branch
2023-07-10 14:46:55 +02:00
Martin W. Kirst
2c1fc4b500
support custom .JS and .CSS files for custom banner messages (white-labeling) (#1781)
This PR introduces two new server configuration options, for providing a
custom .JS and .CSS file.
These can be used to show custom banner messages, add
environment-dependent signals, or simply a corporate logo.

### Motivation (what problem I try to solve)

I'm operating Woodpecker in multiple k8s clusters for different
environments.
When having multiple browser tabs open, I prefer strong indicators for
each environment.
E.g. a red "PROD" banner, or just a blue "QA" banner.
Also, we sometimes need to have the chance for maintenance, and instead
of broadcasting emails,
I prefer a banner message, stating something like: "Heads-up: there's a
planned downtime, next Friday, blabla...".

Also, I like to have the firm's logo visible, which makes Woodpecker
look more like an integral part of our platform.

### Implementation notes

* Two new config options are introduced ```WOODPECKER_CUSTOM_CSS_FILE```
and ```WOODPECKER_CUSTOM_JS_FILE```
* I've piggy-bagged the existing handler for assets, as it seemed to me
a minimally invasive approach
* the option along with an example is documented
* a simple unit test for the Gin-handler ensures some regression safety
* no extra dependencies are introduced

### Visual example

The documented example will look like this.

![Screenshot 2023-05-27 at 17 00
44](https://github.com/woodpecker-ci/woodpecker/assets/1189394/8940392e-463c-4651-a1eb-f017cd3cd64d)

### Areas of uncertainty 

This is my first contribution to Woodpecker and I tried my best to align
with your conventions.
That said, I found myself uncertain about these things and would be glad
about getting feedback.

* The handler tests are somewhat different than the other ones because I
wanted to keep them simple - I hope that still matches your coding
guidelines
* caching the page sometimes will let the browser not recognize changes
and a user must reload. I'm not fully into the details of how caching is
implemented and neither can judge if it's a real problem. Another pair
of eyes would be good.
2023-07-10 12:46:35 +02:00
Anbraten
f2c33a0d89
Fix netrc passing to clone image (#1964)
closes #1837
2023-07-09 23:41:13 +02:00
Weblate
a3b9cae759 Translated using Weblate (Latvian)
Currently translated at 100.0% (310 of 310 strings)

Co-authored-by: Lauris BH <lauris@nix.lv>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/lv/
Translation: Woodpecker CI/UI
2023-07-09 20:44:58 +00:00
6543
5393aa5d3b
Move docker specific volume & network settings into backend code (#1956)
... if we want to make them be changed ... it should be an
agent-backend-option
2023-07-09 21:03:19 +02:00
6543
89623471fb
Changelog v0.15.10 (#1954) (#1961)
frontport #1954
2023-07-09 21:00:05 +02:00
Thomas Anderson
1875e2a416
Fix platform to node-selector mapping for k8s (#1963)
Closes #1955
2023-07-09 20:22:50 +03:00
6543
de13aeea33
Remove unused step options (#1957)
remove them as they did never had any functionality
2023-07-09 12:32:19 +02:00
6543
b3f65d9d01
pipeline-StepBuilder extract item generation of workflow into own function (#1950) 2023-07-08 22:17:09 +02:00