kontti hallitaan workflowssa
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 16s
acc-tests Link to Cucumber reports
CI Feature / Cucumber tests (push) Successful in 30s
unit-tests Link to Bats reports
CI Feature / Bats tests (push) Failing after 22s
CI Feature / Report Summary (push) Successful in 5s

This commit is contained in:
moilanik
2026-06-18 10:42:08 +03:00
parent 0f371adafa
commit 56031a03b8
5 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -6,8 +6,9 @@ on:
required: true required: true
type: string type: string
bats-image: bats-image:
required: true required: false
type: string type: string
default: gitea.app.keskikuja.site/niko/ci-bats:latest
secrets: secrets:
GITEA_TOKEN: GITEA_TOKEN:
required: true required: true
+2 -1
View File
@@ -6,8 +6,9 @@ on:
required: true required: true
type: string type: string
cucumber-node-image: cucumber-node-image:
required: true required: false
type: string type: string
default: gitea.app.keskikuja.site/niko/ci-cucumber:latest
secrets: secrets:
GITEA_TOKEN: GITEA_TOKEN:
required: true required: true
-2
View File
@@ -20,7 +20,6 @@ jobs:
secrets: inherit secrets: inherit
with: with:
env_json: ${{ needs.load-config.outputs.env_json }} env_json: ${{ needs.load-config.outputs.env_json }}
bats-image: gitea.app.keskikuja.site/niko/ci-bats:latest
cucumber: cucumber:
name: Cucumber tests name: Cucumber tests
@@ -29,7 +28,6 @@ jobs:
secrets: inherit secrets: inherit
with: with:
env_json: ${{ needs.load-config.outputs.env_json }} env_json: ${{ needs.load-config.outputs.env_json }}
cucumber-node-image: gitea.app.keskikuja.site/niko/ci-cucumber:latest
report-summary: report-summary:
name: Report Summary name: Report Summary
-2
View File
@@ -29,7 +29,6 @@ jobs:
secrets: inherit secrets: inherit
with: with:
env_json: ${{ needs.load-config.outputs.env_json }} env_json: ${{ needs.load-config.outputs.env_json }}
bats-image: gitea.app.keskikuja.site/niko/ci-bats:latest
cucumber: cucumber:
name: Cucumber tests name: Cucumber tests
@@ -39,7 +38,6 @@ jobs:
secrets: inherit secrets: inherit
with: with:
env_json: ${{ needs.load-config.outputs.env_json }} env_json: ${{ needs.load-config.outputs.env_json }}
cucumber-node-image: gitea.app.keskikuja.site/niko/ci-cucumber:latest
build-push: build-push:
name: Build & Push Docker name: Build & Push Docker
+3
View File
@@ -133,6 +133,9 @@ Käytä erillisiä steppejä `if: always()`:lla, jotta jokainen vaihe ajetaan it
`latest` on näille paras käytäntö, ei kompromissi `latest` on näille paras käytäntö, ei kompromissi
3. **Ei koskaan `curl`-latauksia CI-ajon sisällä** — työkalujen asennus CI-stepeissä hidastaa, 3. **Ei koskaan `curl`-latauksia CI-ajon sisällä** — työkalujen asennus CI-stepeissä hidastaa,
epäluotettavaa, ja vaikeuttaa toistettavuutta epäluotettavaa, ja vaikeuttaa toistettavuutta
4. **Konttikuva hallitaan workflow'ssa, ei kutsujassa** — jos workflow vaatii tietyn
konttikuvan, se määritellään oletuksena (`default:`) workflow'n inputissa.
Kutsujan ei tarvitse tietää eikä välittää image-nimeä ellei halua ylikirjoittaa.
CI-kontin build-workflow'n template: [skills/ci-container-build/SKILL.md](../ci-container-build/SKILL.md) — sisältää CI-kontin build-workflow'n template: [skills/ci-container-build/SKILL.md](../ci-container-build/SKILL.md) — sisältää
valmiin `ci-container-build-<kontti>.yml`-pohjan jossa `workflow_dispatch`-tuki manuaaliajoon. valmiin `ci-container-build-<kontti>.yml`-pohjan jossa `workflow_dispatch`-tuki manuaaliajoon.