Commit Graph

4703 Commits

Author SHA1 Message Date
Matheus Moraes
010da2e174 fix(server/api/repo): Fix repair webhook host (#2372) (#2452)
Backports #2372 to release 1.0

Fixes https://github.com/woodpecker-ci/woodpecker/issues/2371

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-09-13 08:57:12 +02:00
qwerty287
7db2c0529c Rebuild swagger with latest version (#2455)
fixes https://ci.woodpecker-ci.org/repos/3780/pipeline/8203/23
2023-09-13 08:41:56 +02:00
Robert Kaussow
1a164fe9cd Show correct event in pipeline step list (#2448)
Backport [#2334](https://github.com/woodpecker-ci/woodpecker/pull/2334)

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
(cherry picked from commit 15bd20d58b)
2023-09-12 16:21:59 +02:00
qwerty287
90310de6f1 Check permissions on repo lookup (#2358)
Backport #2357
2023-08-30 16:50:47 +02:00
qwerty287
3fba8e38bf make WOODPECKER_MIGRATIONS_ALLOW_LONG have an actuall effect (#2251) (#2309) 2023-08-21 11:13:20 +02:00
Thomas Anderson
c96faa43f7 Change token logging to trace level (#2247) (#2248)
Changed from `info` to `trace`.

Backport of #2247.

Tested on v1.0.2.
2023-08-18 23:13:51 +02:00
6543
c67be308cb Docker build dont ignore ci env vars (#2238) (#2246)
backport #2238
close  #2236
2023-08-18 16:45:56 +02:00
Lauris BH
7d7326320e Handle parsed hooks that should be ignored (#2243) (#2244)
Currently it would fail with panic:

```
runtime error: invalid memory address or nil pointer dereference
...
/woodpecker/src/github.com/woodpecker-ci/woodpecker/server/forge/gitea/gitea.go:492 (0xdfb32e)
```
2023-08-18 14:42:31 +02:00
6543
a31752eb55 Return 204 not 500 on filtered pipeline (#2230)
the error check always failed, as the custom errors did not have the
`Is(error) bool` interface implemented

backport bugfix part of  #2216
2023-08-17 14:46:22 +02:00
6543
2d0a6e7702 pipeline: fix VERSION_NUMBER 2023-08-17 14:20:06 +02:00
6543
24910b67b2 Set correct version for release branch releases (#2227) (#2229)
Backport  #2227

close  #2225

also make the sha 10 chars long instead of 8, to match the docker tags
2023-08-17 00:12:46 +02:00
6543
d9e06696bf Changelog v1.0.2 (#2223) v1.0.2 2023-08-16 16:45:52 +02:00
6543
7f18689d61 Bump default git clone plugin (#2215) (#2220)
Backport #2215

- and add alternate quay registry to trusted clone image
- add alternate registry for buildx plugin
2023-08-16 16:21:57 +02:00
6543
6e4c2f84cc Validate webhook before change any data (#2221) (#2222)
Backport #2221
2023-08-16 16:19:10 +02:00
qwerty287
4f4d383caf Show all steps (#2190) (#2191)
Backport #2190
2023-08-10 10:58:53 +02:00
6543
71e041807a bump xorm.io to db7c2640627d (#2185) (#2186)
pull got merged so we can switch back to upstream

backport #2185 for better maintinance
2023-08-10 08:21:50 +02:00
qwerty287
4f14c01b5a Fix router (#2164)
Closes #2153

This is pretty critical, we'll need 1.0.2 asap
v1.0.1
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
v1.0.0
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 v1.0.0-rc1 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