Commit graph

4687 commits

Author SHA1 Message Date
qwerty287 4f14c01b5a
Fix router (#2164)
Closes #2153

This is pretty critical, we'll need 1.0.2 asap
2023-08-08 12:02:18 +02:00
6543 40d12a9e97
Add changelog v1.0.1 (#2150) 2023-08-08 08:17:14 +02:00
6543 c7f0b626ab
Fix 'add-orgs' migration (#2117) (#2145)
backport #2117
close  #2096
2023-08-08 00:30:21 +02:00
qwerty287 239b00ca20
Fix UI and backend paths with subpath (#1799) (#2133) 2023-08-07 18:43:14 +02:00
runephilosof-karnovgroup 4b0db4ec86
CLI repo sync: Show forge-remote-id (#2125)
Backport #2103 

Because you need the `forge-remote-id` to supply as an argument to `repo
add`
2023-08-07 09:53:39 +02:00
6543 666b59d0d2
Fix swagger response code (#2119) (#2121)
Closes #2118
Backport #2119

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-08-06 02:12:53 +02:00
6543 e6c1f7fb24
Only run docs workflow on main branch (#2105) (#2110)
Backport #2105
2023-08-04 07:51:10 +02:00
6543 375f60bbec
Forge Github Org: Use login instead of name (#2104) (#2106)
Backport #2104

For "woodpecker-ci" the `name` is "Woodpecker CI"
 and the `login` is "woodpecker-ci"

Fixes #2092

This was causing the organization lookup to fail, because it looks up
using the `login`, when it did not find the organization, it would try
to create it. The creation would fail, because it uses the `name`, and
an organization with that `name` already exists.
Resulting in:

```
pq: duplicate key value violates unique constraint "UQE_orgs_name"
```

Co-authored-by: runephilosof-karnovgroup <101270124+runephilosof-karnovgroup@users.noreply.github.com>
2023-08-03 17:59:33 +02:00
qwerty287 d3965faae9
Fix translation key (#2098)
Backport from #2094
2023-08-03 17:15:50 +02:00
runephilosof-karnovgroup 64143599f1
client.go: Backport fix RepoPost path (#2100)
Backports #2091 
Fixes #2088
2023-08-03 10:27:24 +02:00
praneeth-ovckd dd55261703
Fix WOODPECKER_GRPC_VERIFY being ignored (#2077) (#2082)
Backports (#2077)
2023-08-01 14:34:52 +02:00
6543 0f91475532
Publish releases and branch tags to quay.io too (#2069)
address  #1995
2023-07-31 05:26:58 +02:00
6543 1f09a8730d
Prepair docs for v1.0.0 release (#2061)
Backport  #2056 and #2058
2023-07-29 15:07:30 +02:00
6543 7635b5d1f0
Missed deprecation (#2047)
in the refactoring we did move from CI_SYSTEM_ARCH to CI_SYSTEM_PLATFORM

but we missed to set the var in the agent pipeline tracer, so the
Kubernetes backend did not work with it.

this fix it and also make it  deprecated as intended
2023-07-28 13:32:30 +02:00
6543 9fdb5d9400
Handle case where there is no latest pipeline for GetBadge (#2042) (#2050)
Backport #2042

address  error 2 of #2036
2023-07-28 07:28:29 +02:00
6543 196af159f8
Fix wrong repo url used by badges (#2037) (#2039)
backport #2037

Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2023-07-27 15:27:49 +02:00
6543 b57c4e1f86
ci: cross compile server on release branches too 2023-07-25 14:46:38 +02:00
6543 a0af5feec7
ci: cross compile server on tag too 2023-07-25 14:42:09 +02:00
6543 3a99be7a5b
ci: run workflows on tagging too 2023-07-25 14:08:21 +02:00
6543 1c116daf08
Create docs for v1.0.x (#1855)
and also fix / enhance some
2023-07-25 12:41:58 +02:00
Robert Kaussow 2e954801b8
Always use a static back route (#2028)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1998

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-07-24 20:06:26 +02:00
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