Commit graph

5347 commits

Author SHA1 Message Date
qwerty287
c1faa95d8f
Revert breaking pipeline changes (#2677)
Revert #2180 and #2480 so we can release v2.0 without breaking changes
in pipeline config.

After merging #2476 we should apply these changes to a new v2.

After merging this, we should be ready for the 2.0 release.

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-11-02 15:31:49 +01:00
Weblate
f270be4940 Translated using Weblate (Indonesian)
Currently translated at 100.0% (354 of 354 strings)

Co-authored-by: Linerly <linerly@proton.me>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translation: Woodpecker CI/UI
2023-11-02 12:17:40 +00:00
runephilosof-karnovgroup
dbed835b6d
Use int64 for IDs in woodpecker client lib (#2703)
Switch from int to int64 for IDs
2023-11-02 12:21:11 +01:00
6543
c75068920c
save GOOS and GOARCH in local engine (#2701)
make refactoring easyer
2023-11-02 07:58:32 +01:00
Thomas Anderson
de53b906e8
Add ports into pipeline backend step model (#2656)
Closes #2655.


[Pipeline](https://woodpecker-ci.org/docs/next/usage/services#complete-pipeline-example):
```yaml
services:
  database:
    image: mysql
    environment:
      - MYSQL_DATABASE=test
      - MYSQL_ROOT_PASSWORD=example
    ports:
      - 3306

steps:
  get-version:
    image: ubuntu
    commands:
      - ( apt update && apt dist-upgrade -y && apt install -y mysql-client 2>&1 )> /dev/null
      - sleep 60s # need to wait for mysql-server init
      - echo 'SHOW VARIABLES LIKE "version"' | mysql -uroot -hdatabase test -pexample
```

Service:
```yaml
apiVersion: v1
kind: Service
metadata:
  name: wp-01hdq6gbkw1mn6k1655fs3rntf-0-services-0
  namespace: woodpecker-runtime
  ...
  selfLink: >-
    /api/v1/namespaces/woodpecker-runtime/services/wp-01hdq6gbkw1mn6k1655fs3rntf-0-services-0
status:
  loadBalancer: {}
spec:
  ports:
    - protocol: TCP
      port: 3306
      targetPort: 3306
  selector:
    step: database
  clusterIP: 10.43.180.120
  clusterIPs:
    - 10.43.180.120
  type: ClusterIP
  sessionAffinity: None
  ipFamilies:
    - IPv4
  ipFamilyPolicy: SingleStack
  internalTrafficPolicy: Cluster
```
2023-11-02 04:12:41 +01:00
Thomas Anderson
3620c84da4
Unregister stateless agents from server on termination (#2606)
Closes #2027

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-11-02 01:53:47 +02:00
Patrick Schratz
ec62a1d0c6
Pin alpine versions in Dockerfile (#2649) 2023-11-01 23:46:03 +01:00
qwerty287
abb2f280eb
Unique status for matrix (#2695)
implement this fix but with an additional field on workflows to not
change the workflow name

closes #1840 
closes #713

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-11-01 17:28:02 +01:00
6543
037703028e
Fix typo in golang image name (#2696) 2023-11-01 17:01:34 +01:00
6543
ebe0307c6b
Let the backend engine report the current platform (#2688)
if you run woodpecker-agent on windows and connect it to an docker
daemon, there could be two different platforms possible, as you can
switch from linux to windows mode and visa versa


---
*Sponsored by Kithara Software GmbH*
2023-11-01 15:38:37 +01:00
Joonhyeok Ahn
5876213b42
Showing the pending pipelines on top (#1488)
close #1358

---------

Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2023-11-01 15:37:43 +01:00
Robert Kaussow
1f7c087074
Use full qualifyer for images (#2692)
Supersedes https://github.com/woodpecker-ci/woodpecker/pull/1659

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-11-01 15:25:48 +01:00
6543
48e4eceb0a
local backend make cmd log output similar to other shells (#2678)
the cmd currently shows the full prompt and drop the exact error level.

this set the prompt to be hidden and let cmd exit with error level
reported by the command

---
*Sponsored by Kithara Software GmbH*
2023-11-01 11:49:36 +01:00
runephilosof-karnovgroup
4647e64f13
Report problems with listening to ports and exit (#2102)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-01 11:44:08 +01:00
6543
e83357833d
Use path.Join for server side path generation (#2689)
make sure to have valid config even when server is running under windows

---
*Sponsored by Kithara Software GmbH*
2023-11-01 11:29:44 +01:00
Weblate
fe7dc3fff5 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-11-01 09:43:59 +00:00
runephilosof-karnovgroup
97f04449a4
Woodpecker-go: Use Feed instead Activity (#2690)
The models had gotten out of sync.
Use the same definition ~to avoid them getting out of sync in the
future~.

Closes https://github.com/woodpecker-ci/woodpecker/issues/2679
2023-11-01 10:43:55 +01:00
Weblate
bde9f97407 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/
Translation: Woodpecker CI/UI
2023-11-01 09:30:46 +00:00
qwerty287
2ff916c804
Refactor UI dark/bright mode (#2590)
- collapse pipeline configs by default, closes
https://github.com/woodpecker-ci/woodpecker/discussions/2557
- refactor ui themes: instead of just differentiating between "is dark"
or "is not dark", add a third "auto" option following the browser
settings (closes
https://github.com/woodpecker-ci/woodpecker/discussions/2204) and put
everything into an enum. also move the option from the navbar to user
settings.

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-11-01 10:30:40 +01:00
Anbraten
4198c447fb
Destroy steps after they are done (#2681)
Co-authored-by: 6543 <m.huber@kithara.com>
2023-11-01 09:35:11 +01:00
6543
902877690d
Fix secrets UI (#2687) 2023-11-01 08:36:59 +01:00
Anbraten
fffddb0bc3
Fix docker preview images (#2683) 2023-10-31 21:07:29 +01:00
6543
5742e8695c
Do not sanitzie secrets with 3 or less chars (#2680)
as this secrets have to low entropy they can not be valid secrets and
e.g. make log only unredable

just add a secret with value `a` to a repo an run a pipeline ...

---
*Sponsored by Kithara Software GmbH*
2023-10-31 19:44:03 +01:00
Weblate
15960e7628 Translated using Weblate (French)
Currently translated at 100.0% (352 of 352 strings)

Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translation: Woodpecker CI/UI
2023-10-31 16:46:08 +00:00
renovate[bot]
c36b1cd6ff
chore(deps): lock file maintenance (#2673) 2023-10-31 13:21:20 +01:00
Jannik Heuer
0fbf8cfc85
Fix secret image filter regex (#2674) 2023-10-31 13:15:13 +01:00
Patrick Schratz
2f0bb7153e
Pin trivy docker image version (#2668) 2023-10-31 13:04:28 +01:00
renovate[bot]
e4fe5022c0
fix(deps): update golang (packages) (#2671) 2023-10-31 12:55:47 +01:00
qwerty287
9c07b15c99
Fix where syntax (#2676) 2023-10-31 12:43:06 +01:00
renovate[bot]
8a21a4c08e
fix(deps): update docker to v24 (#2675) 2023-10-31 12:33:27 +01:00
Patrick Schratz
856b2ef8c7
pre-commit fixes (#2669)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
2023-10-31 09:14:09 +01:00
Patrick Schratz
bd46c01a3e
Use pre-commit (#2650) 2023-10-28 21:58:59 +02:00
renovate[bot]
4dbde3c409
fix(deps): update dependency fuse.js to v7 (#2666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 21:31:34 +02:00
renovate[bot]
e0463068c9
chore(deps): update dependency @types/node to v20 (#2664)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 21:17:32 +02:00
renovate[bot]
7345348253
chore(deps): update woodpeckerci/plugin-docker-buildx docker tag to v2.2.0 (#2663) 2023-10-28 13:54:33 +02:00
renovate[bot]
094f3033f9
chore(deps): update mysql docker tag to v8.2.0 (#2662) 2023-10-28 13:51:55 +02:00
6543
5b3bba726d
local backend ignore errors in commands inbetween (#2636)
for normal posix shells we have to add the `-e ` option ... but as there
are more shells out there we have to handle this edgecases on base per
base case.

create a switch case statement in woodpecker should be fine as there is
only a finite number of shells, used in production.

also close  #2612

---
*Sponsored by Kithara Software GmbH*
2023-10-28 13:38:47 +02:00
qwerty287
e74115027b
Add some tests (#2652)
and some cleanups
2023-10-28 13:37:54 +02:00
renovate[bot]
4f8732bafc
chore(deps): update docs npm deps non-major (#2660) 2023-10-28 08:43:25 +02:00
renovate[bot]
8a1f271b58
chore(deps): update web npm deps non-major (#2661) 2023-10-28 08:19:29 +02:00
Weblate
3607886be2 Translated using Weblate (Indonesian)
Currently translated at 100.0% (352 of 352 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (352 of 352 strings)

Translated using Weblate (German)

Currently translated at 100.0% (352 of 352 strings)

Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: yeziruo <i@yeziruo.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/zh_Hans/
Translation: Woodpecker CI/UI
2023-10-26 08:46:08 +00:00
qwerty287
aeb7bcb26a
Remove WOODPECKER_DOCS config (#2647) 2023-10-25 15:05:19 +02:00
qwerty287
70531821bf
Add woodpecker-lint tool (#2648) 2023-10-25 11:09:39 +02:00
Anbraten
f44aa8a6fd
Remove plugin-only option from secrets (#2213) 2023-10-24 20:38:47 +02:00
Patrick Schratz
703983419a
Bump codecov version to fix build (#2644)
Co-authored-by: 6543 <6543@obermui.de>
2023-10-24 17:20:07 +02:00
qwerty287
387637bb4e
Use repo user to repair (#2645)
Solve
https://github.com/woodpecker-ci/woodpecker/pull/2642#pullrequestreview-1694731501
2023-10-24 15:54:43 +02:00
qwerty287
5045f1e431
Remove deprecated API paths (#2639) 2023-10-24 15:21:05 +02:00
Patrick Schratz
c344cbb0fc
Fix codecov plugin version (#2643)
After the recent update of the plugin (which now follows semver)
2023-10-24 14:55:24 +02:00
Anbraten
66a5ba4e4f
Add prettier (#2600) 2023-10-24 14:42:05 +02:00
qwerty287
69917c1a0d
Add "Repair all" button (#2642)
to the admin repo list

ref #2639
2023-10-24 14:12:55 +02:00