katetaan puuttuva testit
This commit is contained in:
@@ -7,7 +7,7 @@ Provider-repossa (`gitea-ci-library`) kansioiden omistajuus on seuraava:
|
||||
| Kansio / Tiedosto | Omistaja | Tyyppi |
|
||||
|-------------------|----------|--------|
|
||||
| `.gitea/workflows/` | Sekoitettu | Providerin reusable workflowt + consumerin pipeline |
|
||||
| `.gitea/workflows/feature-env.conf` | Consumer | KEY=VALUE config |
|
||||
| `.gitea/workflows/gitea-env.conf` | Consumer | KEY=VALUE config |
|
||||
| `.gitea/scripts/` | Consumer | Consumer-skriptit |
|
||||
| `scripts/` | Provider | Providerin sisäiset työkalut |
|
||||
|
||||
@@ -52,7 +52,7 @@ Consumerin omat skriptit, osana consumerin pipeline-logiikkaa.
|
||||
Kutsutaan consumerin workflowista ilman tupla checkouttia:
|
||||
`.gitea/scripts/bats-report.sh`.
|
||||
|
||||
## Consumerin `.gitea/workflows/feature-env.conf`
|
||||
## Consumerin `.gitea/workflows/gitea-env.conf`
|
||||
|
||||
Consumerin konfiguraatiotiedosto. Providerin `config-provider.yml`
|
||||
lukee tämän ja muuntaa JSONiksi, mutta consumer omistaa sisällön.
|
||||
|
||||
@@ -64,7 +64,7 @@ mekanismin ketjuttamista:
|
||||
Ketju toimii näin:
|
||||
|
||||
```
|
||||
feature-env.conf → config-provider.yml → env_json (yksi JSON-string)
|
||||
gitea-env.conf → config-provider.yml → env_json (yksi JSON-string)
|
||||
(1) (2)
|
||||
↓
|
||||
ci.yml with: env_json
|
||||
@@ -80,7 +80,7 @@ feature-env.conf → config-provider.yml → env_json (yksi JSON-string)
|
||||
```
|
||||
|
||||
Vaiheet:
|
||||
1. Consumer määrittelee arvot `feature-env.conf`:ssä (KEY=VALUE)
|
||||
1. Consumer määrittelee arvot `gitea-env.conf`:ssä (KEY=VALUE)
|
||||
2. `config-provider.yml` lukee confin ja tuottaa yhden JSON-stringin outputina
|
||||
3. `ci.yml` välittää JSONin `needs` + `with:` -ketjulla
|
||||
4. `build-feature.yml` purkaa arvot workflow `env:`-tasolle `fromJson()`:lla
|
||||
|
||||
Reference in New Issue
Block a user