Commit Graph

4125 Commits

Author SHA1 Message Date
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
Lauris BH
570aaa4235 Move all static texts to locale file (#989)
* Move all static texts to locale file

* Fix message

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2022-06-18 10:48:18 +02:00
qwerty287
42c745362b Show forge icons in UI (#987) 2022-06-17 20:14:01 +02:00
Lauris BH
99f1b70570 Add option to launch all needed services for local development (#988)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2022-06-17 16:24:49 +02:00
6543
08479390ff Use editorconfig-checker (#982) 2022-06-17 12:03:34 +02:00
Lauris BH
14b3cfff1b Improve dark style text color for better readibility (#985) 2022-06-17 02:00:31 +02:00
6543
17999da20f Minim golang 1.18 and drop vendor folder (#979) 2022-06-17 01:57:02 +02:00
6543
d2aad473d7 Revert "hotfix to get no missmatch [1 & 2]" (#984)
This reverts commit 06f869beb3.
This reverts commit dbb5b4baa2.
2022-06-16 23:55:17 +02:00
6543
9449b67da9 fix regression from 81dcdea2be (missmatch) 2022-06-16 23:11:27 +02:00
6543
06f869beb3 hotfix to get no missmatch [2] 2022-06-16 23:07:46 +02:00
6543
dbb5b4baa2 hotfix to get no missmatch 2022-06-16 23:00:24 +02:00
Anbraten
3c4d451b72 Use xterm.js for log outputs (#846)
- use xterm
- improve error showing
- show build erro
2022-06-16 19:24:27 +02:00
6543
904f9bb194 Update github.com/containerd/containerd (#978)
* update github.com/containerd/containerd

* go mod tidy && go mod vendor
2022-06-16 17:35:56 +02:00
6543
0ab5182402 Document package architecture (#972)
to make it easier for devs to find the right place for code

close #655

Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2022-06-16 15:35:58 +02:00
Anbraten
3d8ea2e2c9 Return to page after clikcing login at navbar (#975) 2022-06-16 14:38:57 +02:00
6543
bdcee93f79 Move Server Pipeline Build code out of API into own package (#949)
- refactor
- create new errors to handle on them
- dedup code
- split server pipeline functionality's into dedicated functions
- add code comments to document what goes on
- add TODOs for next refactor
2022-06-15 21:33:29 +02:00
6543
068063655b Make pipeline runtime log with description (#970)
* introduce runtime descriptors to pipeline runtime

* nit return orig error at traceStep()

* more logging

* refactor

Co-authored-by: Zav Shotan <zshotan@bloomberg.net>
2022-06-15 18:11:20 +02:00
6543
9f7b72f9a9 Update .vscode/launch.json (#969)
Co-authored-by: Zav Shotan <zshotan@bloomberg.net>
2022-06-15 12:49:37 +02:00
6543
e06ebd6493 Add Changelog v0.15.2 (#966) (#967)
frontport #966
2022-06-14 15:07:53 +02:00
Zav Shotan
81dcdea2be Add support for steps to be a list (instead of dict) (#826)
- Support for pipeline/containers as list
- Support for container name in logs (step.Name)

Co-authored-by: Zav Shotan <zshotan@bloomberg.net>
Co-authored-by: 6543 <6543@obermui.de>
2022-06-13 23:13:09 +02:00
Arno Hautala
cdbba4c306 fix run_on references with runs_on in docs (#965) 2022-06-10 05:44:26 +02:00
6543
024a12105f fix name of field in the response from config api (#962)
Co-authored-by: GulfSugar <gulfsugar@noreply.codeberg.org>
2022-06-09 12:00:13 +02:00
Anbraten
b45c0fa634 fix badges (#957) 2022-06-04 16:23:45 +02:00
x80486
48b91f99fe Rename build to pipeline in badges (#956) 2022-06-03 15:42:42 +02:00
qwerty287
4cdc50460c Add matrix room to issue template (#954) 2022-06-03 14:21:19 +02:00
qwerty287
a561058fee Fix nil pointer issue with config-service (#953) 2022-06-03 08:17:47 +02:00
qwerty287
0426f7c5d0 Fix nil pointer (#950) 2022-06-02 12:49:12 +02:00
Anbraten
cc30db44ac Use asym key to sign webhooks (#916)
* use async key pair for webhooks

* fix tests

* fix linter

* improve code

* add key pair to database

* undo some changes

* more undo

* improve docs

* add api-endpoint

* add signaturne api endpoint

* fix error

* fix linting and test

* fix lint

* add test

* migration 006

* no need for migration

* replace httsign lib

* fix lint

Co-authored-by: 6543 <6543@obermui.de>
2022-06-01 20:06:27 +02:00
Egor Tensin
a2ca657631 Improve UI colors to have more contrast (#943)
* web: improve contrast in BuildProcList component
* White text on gray instead of gray on gray.
* web: improve contrast in Panel component
* White header text on dark gray instead of gray on gray.
* Gray body text on white instead of gray on gray.
* Align header padding with the body.
2022-06-01 04:16:26 +02:00
Anbraten
e79ad00826 Add agent tagging / filtering for pipelines (#902)
Officially support labels for pipelines and agents to improve pipeline picking. 

* add pipeline labels
* update, improve docs  and add migration
* update proto file

---
closes #304 & #860
2022-05-31 01:12:18 +02:00
Anbraten
56a55842f6 fixed typo and actual name of json field (#942) 2022-05-30 00:56:28 +02:00