name: CI Git-Pages Main on: push: branches: - main paths: - git-pages/** - .gitea/workflows/git-pages.* workflow_dispatch: jobs: load-config: name: Config load uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main secrets: inherit with: config_path: .gitea/workflows/git-pages.gitea-env.conf check-version: name: Latest version 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 }} helm-push: name: Build & Push Helm chart needs: [load-config, check-version] if: needs.check-version.outputs.artifact_exists != 'true' uses: niko/gitea-ci-library/.gitea/workflows/helm-build-push.yml@main secrets: inherit with: env_json: ${{ needs.load-config.outputs.env_json }} version: ${{ needs.check-version.outputs.version }} chart_path: git-pages chart-gitops: name: GitOps needs: [helm-push, load-config, check-version] 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/Chart.yaml GITOPS_YQ_TPL: '(.dependencies[] | select(.name == "git-pages") | .version) = "{{VERSION}}"' GITOPS_REPO: niko/gitea-ci-gitops-tests report-summary: name: Report Summary needs: [load-config, helm-push, chart-gitops] if: always() uses: niko/gitea-ci-library/.gitea/workflows/report-summary.yml@main with: env_json: ${{ needs.load-config.outputs.env_json }} suites: "" gitops: | ${{ needs.chart-gitops.outputs.summary }}