41b1119f21
CI Feature / Load gitea-env.conf to pipeline env (push) Successful in 11s
ci-validate CI config valid
CI Feature / Validate CI config (push) Successful in 16s
ci-bats Bats tests OK
CI Feature / Bats tests (push) Successful in 1m39s
ci-cucumber Cucumber tests OK
CI Feature / Cucumber tests (push) Successful in 1m7s
CI Feature / Report Summary (push) Successful in 5s
69 lines
2.2 KiB
YAML
69 lines
2.2 KiB
YAML
name: CI Main
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
load-config:
|
|
name: Load gitea-env.conf to pipeline env
|
|
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
|
|
with:
|
|
config_path: .gitea/workflows/gitea-env.conf
|
|
|
|
check-version:
|
|
name: Check existing artifact
|
|
needs: [load-config]
|
|
uses: niko/gitea-ci-library/.gitea/workflows/check-version.yml@feature/docker-kuntoon
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
|
|
validate:
|
|
name: Validate CI config
|
|
needs: [load-config, check-version]
|
|
if: needs.check-version.outputs.artifact_exists != 'true'
|
|
uses: niko/gitea-ci-library/.gitea/workflows/ci-validate.yml@feature/docker-kuntoon
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
|
|
bats:
|
|
name: Bats tests
|
|
needs: [load-config, check-version]
|
|
if: needs.check-version.outputs.artifact_exists != 'true'
|
|
uses: niko/gitea-ci-library/.gitea/workflows/example-bats-tests.yml@feature/docker-kuntoon
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
bats-image: bats/bats:latest
|
|
|
|
cucumber:
|
|
name: Cucumber tests
|
|
needs: [load-config, check-version]
|
|
if: needs.check-version.outputs.artifact_exists != 'true'
|
|
uses: niko/gitea-ci-library/.gitea/workflows/example-cucumber-tests.yml@feature/docker-kuntoon
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
cucumber-node-image: node:22
|
|
|
|
report-summary:
|
|
name: Report Summary
|
|
needs: [load-config, bats, cucumber]
|
|
if: always()
|
|
uses: niko/gitea-ci-library/.gitea/workflows/example-report-summary.yml@feature/docker-kuntoon
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
|
|
build-push:
|
|
name: Build & Push Docker
|
|
needs: [load-config, check-version, bats, cucumber]
|
|
if: needs.check-version.outputs.artifact_exists != 'true'
|
|
uses: niko/gitea-ci-library/.gitea/workflows/docker-build-push.yml@feature/docker-kuntoon
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
version: ${{ needs.check-version.outputs.version }}
|