Commit graph

4342 commits

Author SHA1 Message Date
Michaël Dierick
7859bde63d
add support for DRONE_COMMIT_SHA alias (#1421)
[The docker plugin
uses](d0e7d7f01b/cmd/drone-docker/main.go (L43))
the `DRONE_COMMIT_SHA` variant. According to [drone
reference](https://docs.drone.io/pipeline/environment/reference/) doc,
`DRONE_COMMIT_SHA` and `DRONE_COMMIT` are the same thing (although the
default value in the docker plugin suggests the 8-char short form).
2022-11-16 18:14:06 +01:00
smainz
2730d3939a
Fix usage text of cli sub-command 'cron' (#1420) 2022-11-16 14:58:30 +01:00
Sergio Fenoll
f0e518a5a2
Add option to ignore failures on steps (#1219)
closes #1181
closes #834 

Adds `ignore_failure` to pipeline steps. When it's set to true,
if the step fails the following steps continue to execute as if no failure had occurred.

---

failure enums idea:
* fail (default) = if other steps run in parallel, wait for them and
then let workflow fail
* cancel = if other steps run in parallel, kill them
* ignore = we mark the step as failed but it wont have any impact
2022-11-15 19:47:27 +01:00
Anbraten
de8ea95dd3
Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
Divya Jain
d785d05718
Use pipeline wrapper and improve scaffold UI (#1368)
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: 6543 <6543@obermui.de>
2022-11-15 10:13:52 +01:00
Lukas
0c96880d70
Fix reopening gitpod workspace (#1300)
Co-authored-by: Anbraten <anton@ju60.de>
2022-11-15 09:18:11 +01:00
Anbraten
cab996608e
Use icons for step and workflow states (#1409)
Co-authored-by: 6543 <6543@obermui.de>
2022-11-14 12:25:58 +01:00
Jordan Christiansen
0295d36f29
Fix broken link in FAQ (#1413) 2022-11-10 18:36:41 +01:00
Josh Soref
12cbe15de0
Fix spelling: gitlab (#1411)
This is most of the GitLab changes that I dropped from #1405. 

As before, I'm happy to adjust things...

<details><summary>Problematic Changes</summary>

Fwiw, this is the part that causes the tests to break (I don't
understand why, but I'm leaving this change out):

```patch
commit 703cbe3ed398bf32535120ead733b80aa145c8db
Author: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date:   Tue Nov 8 17:09:06 2022 -0500

    event?! -- this seems broken

diff --git a/server/forge/gitlab/testdata/hooks.go b/server/forge/gitlab/testdata/hooks.go
index 7d39306..e394afc 100644
--- a/server/forge/gitlab/testdata/hooks.go
+++ b/server/forge/gitlab/testdata/hooks.go
@@ -27,7 +27,7 @@ var (
 	ServiceHookHeaders = http.Header{
 		"Content-Type":   []string{"application/json"},
 		"User-Agent":     []string{"GitLab/14.3.0"},
-		"X-Gitlab-Event": []string{"Service Hook"},
+		"X-GitLab-Event": []string{"Service Hook"},
 	}
 )
 
diff --git a/shared/token/token.go b/shared/token/token.go
index 3f15537..191e5ee 100644
--- a/shared/token/token.go
+++ b/shared/token/token.go
@@ -64,7 +64,7 @@ func ParseRequest(r *http.Request, fn SecretFunc) (*Token, error) {
 		return parse(bearer, fn)
 	}
 
-	token = r.Header.Get("X-Gitlab-Token")
+	token = r.Header.Get("X-GitLab-Token")
 	if len(token) != 0 {
 		return parse(token, fn)
 	}

```
</details>

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2022-11-09 17:16:17 +01:00
Josh Soref
023d03dd61
Spelling (#1405)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-11-09 08:12:17 +01:00
Divya Jain
bb99d5cb6d
Match notification font size to rest of the UI (#1399) 2022-11-06 22:51:06 +01:00
Epsilon_02
b417edf8c1
Fix cut of woodpecker animation (#1402)
the woodpecker svg was cut on top and bottom when moving during an active pipeline.
2022-11-06 21:00:28 +01:00
6543
db1ec4d33f
web: remove unused @meforma/vue-toaster (#1403)
CVE-2022-37601
2022-11-06 20:52:13 +01:00
6543
e8490a757f
GenerateScript should not return encoded script (#1397)
followup to #1395
2022-11-06 13:36:34 +01:00
6543
18311d4360
Split and refactor (#1394)
Closes #974
2022-11-06 12:44:04 +01:00
qwerty287
e901f605b1
Fix local and ssh backends (#1395)
Base64-encoded string was not decoded.
2022-11-05 14:44:33 +02:00
Divya Jain
a94b756cc4
Show workflow state in ui and collapse completed workflows (#1383)
Fixes #1371

Co-authored-by: Anbraten <anton@ju60.de>
2022-11-05 02:18:16 +01:00
Michaël Dierick
df5225ff18
Fix indentation for pipeline-global when documentation (#1387)
Fixes https://github.com/woodpecker-ci/woodpecker/issues/1386

Co-authored-by: 6543 <6543@obermui.de>
2022-11-05 00:57:11 +01:00
qwerty287
3372d1a87c
Rename remote to forge (#1357)
As of #745

Co-authored-by: Anbraten <anton@ju60.de>
2022-11-05 00:35:06 +01:00
Lukas
2ee75dbceb
Wait for gitea to start in gitpod (#1392) 2022-11-04 01:52:56 +01:00
Michael
2477d2e57f
Support .yaml as file-ending for workflow config too (#1388)
This implements #1073, adds .yaml to the accepted endings for woodpecker configs.

This currently adds some more lines to the duplication (tried to compensate by fixing the other duplication in the configFetcher) as the CLI and Server are still separate.
2022-11-03 19:12:40 +01:00
qwerty287
ee9269d658
Fix CLI format and plugin settings in docs (#1390) 2022-11-02 18:02:41 +01:00
Weblate
07b143864a Translated using Weblate (French)
Currently translated at 100.0% (216 of 216 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
2022-11-01 18:08:31 +00:00
qwerty287
f2a37ce801
Fix redirects (#1325)
Not a very elegant solution, but it should work.

Co-authored-by: 6543 <6543@obermui.de>
2022-10-31 17:06:21 +01:00
Joonhyeok Ahn (Joon)
aed3a80287
Migrate sql querys to xorm query builder (#1356)
Co-authored-by: 6543 <6543@obermui.de>
2022-10-31 16:08:57 +01:00
Lukas
8593b756b8
Use html landmark elements (#1361)
Co-authored-by: Anbraten <anton@ju60.de>
2022-10-31 15:04:19 +01:00
6543
b15ca52a63
Move constrain to only have a single command in backend to run to dedicated backends (#1032)
at the moment we compile a script that we can pipe in as single command
this is because of the constrains the docker backend gives us.

so we move it into the docker backend and eventually get rid of it altogether
2022-10-31 00:26:49 +01:00
Michael
e61f97f8ac
Add RBAC to helm chart (#1373)
This PR fixes #1367 with the minimum needed (plus the basics of
annotations and labels, since some clusters need those for extra
verifications, OPA, Kyverno, etc.).

The added role is the minimum access I could get away with (tested each
verb and resource individually), since the Kubernetes go library seems
to use list and get even when not strictly necessary.

I've defaulted to inactive, setting the serviceAccount.rbac.create=true
will create the Role and roleBinding.

The changes only affect the woodpecker-agent chart, as the
woodpecker-server chart currently does nothing directly

# Tests

- [x] non default namespace (roleBindung uses namespace in a not
automatically rewritten position)
- [x] rbac.create enabled and disabled (nothing changes for disabled,
since the templates use a guard)
- [x] custom serviceAccount name
- [x] both roleBinding and role with no annotations, no lables, single
a&l, multiple each
- [x] helm deploy to Kubernetes, with all settings mentioned above

# Documentation

Added in the comments of the values.yaml. Taking it into the docs might
be helpful, but the Kubernetes section in the next docs is fairly empty,
possibly open a new issue and solve when the chart for next is mostly
done.
2022-10-30 22:47:58 +01:00
Divya Jain
280d27d723
Fix pipeline cancel API endpoint and update Web and CLI clients (#1372)
Fixes #1369 

Co-authored-by: Anbraten <anton@ju60.de>
2022-10-30 14:39:01 +01:00
Divya Jain
a5e1714039
Add additional tag to next image with commit sha (#1365)
Next image will have an additional tag of format `next-${truncated_commit_sha}`,

where truncated_commit_sha is the first 10 characters of the commit sha
(also, same for for the `next-alpine` image).
2022-10-29 19:28:47 +02:00
qwerty287
f65654c226
Update Mastodon link (#1364) 2022-10-29 14:07:35 +03:00
Weblate
9756542cae Translated using Weblate (Dutch)
Currently translated at 22.7% (49 of 215 strings)

Translated using Weblate (Indonesian)

Currently translated at 100.0% (215 of 215 strings)

Translated using Weblate (French)

Currently translated at 100.0% (215 of 215 strings)

Translated using Weblate (Spanish)

Currently translated at 17.2% (37 of 215 strings)

Translated using Weblate (German)

Currently translated at 100.0% (215 of 215 strings)

Co-authored-by: Julio Loayza <julio+woodpecker@loayzameneses.com>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Co-authored-by: Michel <woodpecker-ci@pseudonymous.email>
Co-authored-by: qwerty287 <ndev@web.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/es/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/nl/
Translation: Woodpecker CI/UI
2022-10-29 07:08:31 +00:00
qwerty287
8f183c82a8
Support changed files for Gitea PRs (#1342)
- add tests to fetch changed files
- ignore error if gitea version is to low
- adjust docs accordingly

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-10-28 19:17:30 +02:00
Harikesh00
36e42914fa
Renamed procs/jobs to steps in code (#1331)
Renamed `procs` to `steps` in code for the issue #1288

Co-authored-by: Harikesh Prajapati <harikesh.prajapati@druva.com>
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2022-10-28 17:38:53 +02:00
qwerty287
b44e895017
Add Node PM plugin (#1360)
A simple plugin that executes NPM, PNPM or Yarn scripts
2022-10-28 17:06:14 +02:00
Lukas
4b9a380939
Add gitpod port names (#1359) 2022-10-28 13:10:45 +02:00
Divya Jain
e2ab8a46ed
Header and Tabs UI Improvements (#1290)
Some improvements to the Page Header and Tab UI.

Original |  New
:--------:|:-------:

![image](https://user-images.githubusercontent.com/62170586/197360886-046f1016-ca39-4b69-8134-99ba88e3a0c2.png)
|
![image](https://user-images.githubusercontent.com/62170586/197360819-7efd0d82-1412-465d-aefa-039164f97465.png)

![image](https://user-images.githubusercontent.com/62170586/197360872-f2ece5fd-7c0b-4e2c-8629-31524a412af5.png)
|
![image](https://user-images.githubusercontent.com/62170586/197360830-49f09e0d-619e-4fa9-8e38-8d05d9404185.png)

![image](https://user-images.githubusercontent.com/62170586/197281776-e3de6441-9417-4614-8b25-1aaef0b8da61.png)
|
![image](https://user-images.githubusercontent.com/62170586/197281698-40c66d34-76f3-4fd5-97e3-1c422b74844c.png)

![image](https://user-images.githubusercontent.com/62170586/196609248-ff150c6e-2995-4bcc-8573-49ffaf388446.png)
|
![image](https://user-images.githubusercontent.com/62170586/197323734-7c1a1b79-0f41-4bf2-96a3-dd38df9e1415.png)

![image](https://user-images.githubusercontent.com/62170586/196609329-b7a6f37e-e8c2-4004-a98b-73f837122ff8.png)
|
![image](https://user-images.githubusercontent.com/62170586/197323882-10141ffd-7411-4493-8291-b8000adc3cc5.png)


What?
- Create a new Scaffold component, which includes the header and tabs
required for a page.
- Use this component to wrap all the views that have a header.
- Ensures consistency in headers between different pages.
- [x] Add support to use custom html/component in place of title (for
repo page, pipeline page, etc)
- [x] Add support of right icon buttons (for repo page, pipeline page,
etc)
- [x] Refactor tabs handling using compositions (useTabsProvider, useTabsClient)
- [x] Make new header ui resposive
2022-10-28 00:55:07 +02:00
qwerty287
8b7ca464cf
Always use rounded quadrat user avatars (#1350)
To stay consistent with the header.
2022-10-27 16:11:37 +02:00
qwerty287
e568c42e84
Support plugin-only secrets (#1344)
Closes #1071
2022-10-27 04:21:07 +02:00
Lukas
9ece7a1c49
Change locale in user settings (#1305)
Closes #1109
2022-10-27 02:42:39 +02:00
Weblate
2023518552 Added translation using Weblate (Chinese (Traditional))
Co-authored-by: admin <owners@woodpecker-ci.org>
2022-10-26 23:54:11 +00:00
6543
1dad681027
rename zh-Hans 2022-10-27 01:51:25 +02:00
Weblate
50f66cfe11 Translated using Weblate (Indonesian)
Currently translated at 100.0% (212 of 212 strings)

Translated using Weblate (German)

Currently translated at 100.0% (212 of 212 strings)

Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: qwerty287 <ndev@web.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translation: Woodpecker CI/UI
2022-10-26 23:47:19 +00:00
Lukas
6ea23c1aac
Fix display of long pipeline and job names (#1346) 2022-10-27 00:49:26 +02:00
Lauris BH
371d23a437
Fix Gitpod Gitea OAuth2 client must be confidential (#1343) 2022-10-26 16:54:42 +02:00
Michael
cc803a589d Translated using Weblate (French)
Currently translated at 96.2% (203 of 211 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
2022-10-25 23:23:34 +00:00
qwerty287
de4e62cfcf
Allow to run cron manually (#1338)
Closes #1154
2022-10-26 01:23:28 +02:00
Lukas
ed44c3b50f
Use Vue.volar in gitpod (#1339) 2022-10-26 00:11:07 +02:00
qwerty287
da7d13ad4e
Use native directory and run with Node 18 (#1337)
- replace `cd` with native key `directory` (#1329)
- Update Node images to 18
2022-10-25 14:51:29 +02:00
Divya Jain
d7c2fdd05f
Update pipeline steps and logs background (#1330) 2022-10-24 22:36:53 +02:00