Commit graph

4105 commits

Author SHA1 Message Date
qwerty287
22214f5a43
Do not show pipeline name if it's a single file (#1069) 2022-08-15 15:53:36 +02:00
6543
a46723334b
refactor: use switch-case not try-err (#1112) 2022-08-15 14:39:08 +02:00
Lauris BH
5a945c10e9
Fix to show build pipeline parse error (#1066) 2022-08-15 14:37:46 +02:00
Anbraten
fc862bf627
Default clone do checkout tags on tag pipeline (#1110) 2022-08-15 11:52:30 +02:00
Anbraten
93c96de2ac
use fix version to be able to update clone images (#1108) 2022-08-14 21:22:35 +02:00
Anbraten
e269890643
Allow multiple when conditions (#1087)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: LamaAni <zshotan@bloomberg.net>
2022-08-14 19:32:49 +02:00
6543
98e6396e3e
Publish preview container images of pulls (#1072)
* convert dryrun into preview

* nit: vendor first
2022-08-14 19:04:19 +02:00
Anbraten
446585ef1d
Add depends_on to pipeline syntax docs (#1104) 2022-08-14 17:32:01 +02:00
vanous
991fcf7412
Add more documentation for local backend (#1107) 2022-08-14 16:43:06 +02:00
Lauris BH
d63c1dbcba
Fix vscode eslint/prettier settings and Vue extension recommendation (#1084) 2022-08-14 16:34:21 +02:00
Lauris BH
a627968b73
Install missing peer dependency (#1106) 2022-08-14 15:37:50 +02:00
Lauris BH
1ac2c42652
Add global and organization secrets (#1027)
* Implement database changes and store methods for global and organization secrets

* Add tests for new store methods
* Add organization secret API and UI
* Add global secrets API and UI

* Add suggestions

* Update warning style

* Apply suggestions from code review

Co-authored-by: Anbraten <anton@ju60.de>

* Fix lint warning

Co-authored-by: Anbraten <anton@ju60.de>
2022-08-14 13:48:53 +02:00
qwerty287
bed3ef104c
Support Docker credential helpers (#1075)
* support docker credential and add docker-credential-ecr-login into alpine image

* Remove ecr from docker and add docs

* Update docs/docs/30-administration/22-backends/10-docker.md

Co-authored-by: WeStone <xuecanlong@qq.com>
Co-authored-by: Anbraten <anton@ju60.de>
2022-08-14 10:46:18 +02:00
vanous
b7957c53aa
Fix filter cli attribute name (#1103)
Co-authored-by: Anbraten <anton@ju60.de>
2022-08-14 09:48:52 +02:00
Anbraten
fdf5fd3f69
Use local search and update docusaurus (#1093) 2022-08-14 09:19:24 +02:00
Dejan SANADER
7a4827bbf6
Fix duplicate pipeline status in GitLab (#1095) 2022-08-12 17:49:40 +02:00
Hrvoje Slaviček
3367933378
Add hints for reverse proxying of grpc server (#1091)
* Update 70-proxy.md

* Update docs/docs/30-administration/70-proxy.md

* fix suggestion

Co-authored-by: Anbraten <anton@ju60.de>
2022-08-12 09:34:49 +02:00
Lauris BH
4d390104bd
Hide log container if step does not have logs (#1086) 2022-08-10 09:53:55 +02:00
Lauris BH
2e8f9e17e6
Add syntax highlighting for pipeline config (#1082) 2022-08-09 17:39:45 +02:00
Anbraten
66be4923d2
Update dependencies and tiny adjustments to UI (#1083)
- updated all web/ dependencies
- fixed icon positioning issue
- changed text color of pipeline message
- add hover underline effect to breadcrumb org name
2022-08-09 14:13:32 +02:00
qwerty287
d22821afc1
Add logs command to CLI & update forges supported features docs (#1064)
* Complete forges overview + add `logs` command to CLI

* Update 10-overview.md

Co-authored-by: 6543 <6543@obermui.de>
2022-08-09 10:17:39 +02:00
Lauris BH
2f5e5b8e2c
Remove xterm and use ansi converter for logs (#1067)
* Steaming works without flickering
* Text can be correctly copied
* Show only selected step output when streaming
* Improved exit code colors for better readability
* Adds time display on right side

When compiled assets/Build.js size was 355K, now it is 26K

Fixes #1012 
Fixes #998

Co-authored-by: Anbraten <anton@ju60.de>
2022-08-08 15:29:52 +02:00
qwerty287
98636a5493
Fix gitpod docs link (#1076) 2022-08-04 12:56:31 +02:00
Lauris BH
550aefead4
Make returned proc list to be returned always in correct order (#1060) 2022-08-02 18:34:16 +02:00
Julian Groß
75b62ffadc
Fix screenshot upload for issue template (#1062) 2022-08-01 07:43:21 +02:00
Julian Groß
3714605808
Fix broken link in documentation (#1057) 2022-07-31 20:42:35 +02:00
Florian Märkl
7031904dbe
Wait to finish reading logs before calling Wait() on pipeline (#1010)
This fixes errors like the following and chopped off logs ...
2022-07-31 17:12:15 +02:00
Anbraten
5557674835
Add gitpod setup (#1020)
Adding [Gitpod](https://github.com/gitpod-io/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` and `password`.
2022-07-31 17:07:18 +02:00
Lauris BH
01bfbba458
Add pipline convert tool to docs (#1054) 2022-07-30 21:08:01 +02:00
Arno Hautala
d5e31dc187
Provide global environment variables for pipeline substitution (#968)
* make global environment variables available for pipeline substitution

* lint fixes

* global env support in cli exec; procBuilder tests

* drop GLOBAL_ prefix

* docs

* documentation typo

* Update docs/docs/20-usage/50-environment.md

as suggested by anbraten

Co-authored-by: Anbraten <anton@ju60.de>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Anbraten <anton@ju60.de>
2022-07-30 08:06:03 +02:00
Simon Vieille
6351684070
Update type of 'log_data' from blob to longblob (#1050)
* Update type of 'log_data' from blob to longblob

* Add migration task to update log_data type
2022-07-29 14:57:18 +02:00
eleith
b9e1de33c5
Make ListItem component more accessible by using a button tag when clickable (#1044)
Co-authored-by: eleith <eleith@lemon.localdomain>
2022-07-25 04:18:50 +02:00
Lauris BH
19dfc331f4
Add method to check organization membership (#1037)
* Add remote method to check organization membership
* Use named return parameters in interface
* Add membership check service
* Update Gitea SDK
2022-07-25 03:09:35 +02:00
6543
1e8d4cc455
Update jsonschema and pipeline linting 2022-07-19 15:09:39 +02:00
6543
d2556a0613
Update jsonschema and define "services" (#1036)
Co-authored-by: Anbraten <anton@ju60.de>
2022-07-19 15:01:36 +02:00
6543
69ec44075c
Let single line command be a single command (#1009)
* rm go-shlex usage

* update
2022-07-19 07:20:27 +02:00
6543
c3eed4ec01
Fix docs (#1035)
Co-authored-by: Anbraten <anton@ju60.de>
2022-07-18 23:08:13 +02:00
Lauris BH
f654e1f316
Add pipeline log output download (#1023) 2022-07-17 21:51:10 +02:00
6543
73ee12a6c3
fix docs: dont interupt section with unrelated new section (#1029) 2022-07-17 19:13:56 +02:00
6543
8da0ee47f7
Use variables in pipeline (#1026)
use yaml aliases (https://yaml.org/spec/1.2.2/#3222-anchors-and-aliases) to have pipeline `variables`

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
2022-07-17 18:25:56 +02:00
6543
31bad81979
Use external lib to convert yaml to json (#1028)
this move shared/yml/* into an independent lib
2022-07-17 17:23:31 +02:00
6543
86cbd63dc2
Update base images (#1024)
update alpine base image to current stable
and cross-build with golang v1.18
2022-07-17 09:41:32 +02:00
Silje Kristensen
e08e1e1b4b
chore: fix sentence structure (#1013) 2022-07-06 15:11:03 +02:00
Florian Märkl
4879e922c1
Avoid calling /bin/env in local backend (#1011)
/bin/env was used to resolve a command name against PATH and pass
additional environment variables.
All of this can also be achieved using functionality already provided by
go's exec lib, which will then internally pass the appropriate arguments
to e.g. execve.
2022-07-04 20:27:17 +02:00
Florian Märkl
061596d802
Gracefully handle non-zero exit code in local backend (#1002)
A non-zero exit code signifies a pipeline failure, but is not a fatal error in the agent.
Since exec reports this as exec.ExitError, this has to be handled explicitly.
This also fixes logs not being shown on build errors.
2022-07-02 15:56:08 +02:00
Florian Märkl
3f73d5bf53
Fix logs view existing multiple times (#1000)
* Fix terminal DOM existing multiple times

When switching between the tasks/config/changed files tabs in the build
view, the DOM for the log xterm would be inserted multiple times,
causing the current terminal to be shifted down weirdly.
This fixes this behavior by cleaning any custom DOM before the log is
unmounted.

* Use ref
2022-06-25 19:52:37 +02:00
6543
716d55a370
Add German Translation (#997)
* Add German Translation

* Fix visibility description

* fix lint

* Registries or Registry

* Update web/src/assets/locales/de.json

* Apply suggestions from code review

Co-authored-by: Anbraten <anton@ju60.de>

* Update web/src/assets/locales/de.json

Co-authored-by: Anbraten <anton@ju60.de>

* Update web/src/assets/locales/de.json

Co-authored-by: Anbraten <anton@ju60.de>
2022-06-21 18:18:02 +02:00
Lauris BH
415dfb9c46
Fix tabs URLs to be language agnostic (#995) 2022-06-20 19:47:33 +02:00
Simon Michalke
14e1520bf9
Extend FAQ with clone debugging howto (#996) 2022-06-20 19:15:15 +02:00
Lauris BH
2153425230
Add Latvian language translation (#992)
Add Latvian language translation (#992)
2022-06-19 07:31:16 +02:00