bc6bb78973
CI Git-Pages Main / Load git-pages.gitea-env.conf to pipeline env (push) Successful in 34s
CI Main / Check existing artifact (push) Successful in 22s
CI Git-Pages Main / Build & Push Helm chart (push) Successful in 48s
CI Main / Bats tests (push) Successful in 1m34s
acc-tests Cucumber test report
CI Main / Cucumber tests (push) Successful in 1m45s
CI Main / Load example-gitea-env.conf to pipeline env (push) Successful in 34s
CI Git-Pages Main / Check existing artifact (push) Successful in 21s
ci-helm-build-push Helm push 0.1.5
unit-tests Bats test report
CI Git-Pages Main / Update chart to the cluster (push) Failing after 0s
ci-docker-build-push Docker push 0.2.25
CI Git-Pages Main / Report Summary (push) Successful in 7s
CI Main / Build & Push Docker (push) Successful in 44s
CI Main / GitOps (push) Failing after 22s
CI Main / Move provider version tag (push) Has been skipped
CI Main / Report Summary (push) Successful in 6s
Co-authored-by: moilanik <niko.moilanen@tietoevry.com> Reviewed-on: #37
81 lines
2.5 KiB
YAML
81 lines
2.5 KiB
YAML
name: CI Main
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
load-config:
|
|
name: Load example-gitea-env.conf to pipeline env
|
|
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
|
|
secrets: inherit
|
|
with:
|
|
config_path: .gitea/workflows/example-gitea-env.conf
|
|
|
|
check-version:
|
|
name: Check existing artifact
|
|
needs: [load-config]
|
|
uses: niko/gitea-ci-library/.gitea/workflows/check-version.yml@main
|
|
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@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
|
|
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@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
|
|
docker-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@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
version: ${{ needs.check-version.outputs.version }}
|
|
|
|
docker-gitops:
|
|
name: GitOps
|
|
needs: [docker-build-push]
|
|
uses: niko/gitea-ci-library/.gitea/workflows/gitops-dispatch.yml@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
version: ${{ needs.check-version.outputs.version }}
|
|
GITOPS_FILE: dev/values.yaml
|
|
GITOPS_YQ_TPL: '.service.tag = "{{VERSION}}"'
|
|
GITOPS_REPO: niko/gitea-ci-gitops-tests
|
|
|
|
report-summary:
|
|
name: Report Summary
|
|
needs: [load-config, check-version, docker-build-push, docker-gitops]
|
|
if: always()
|
|
uses: niko/gitea-ci-library/.gitea/workflows/report-summary.yml@main
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
suites: bats cucumber
|
|
gitops: |
|
|
${{ needs.docker-gitops.outputs.summary }}
|
|
|
|
tag-maintenance:
|
|
name: Move provider version tag
|
|
needs: [docker-gitops]
|
|
if: success()
|
|
uses: niko/gitea-ci-library/.gitea/workflows/tag-maintenance.yml@main
|
|
secrets: inherit
|