Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f9af398cc | |||
| bc6bb78973 |
@@ -3,19 +3,18 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- feature/gitops
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
load-config:
|
load-config:
|
||||||
name: Load example-gitea-env.conf to pipeline env
|
name: Config load
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
|
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
config_path: .gitea/workflows/example-gitea-env.conf
|
config_path: .gitea/workflows/example-gitea-env.conf
|
||||||
|
|
||||||
check-version:
|
check-version:
|
||||||
name: Check existing artifact
|
name: Latest versio
|
||||||
needs: [load-config]
|
needs: [load-config]
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/check-version.yml@main
|
uses: niko/gitea-ci-library/.gitea/workflows/check-version.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -50,19 +49,9 @@ jobs:
|
|||||||
env_json: ${{ needs.load-config.outputs.env_json }}
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
||||||
version: ${{ needs.check-version.outputs.version }}
|
version: ${{ needs.check-version.outputs.version }}
|
||||||
|
|
||||||
helm-build-push:
|
|
||||||
name: Build & Push Helm
|
|
||||||
needs: [load-config, check-version, bats, cucumber]
|
|
||||||
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 }}
|
|
||||||
|
|
||||||
docker-gitops:
|
docker-gitops:
|
||||||
name: Update docker
|
name: GitOps
|
||||||
needs: [docker-build-push]
|
needs: [docker-build-push, load-config, check-version]
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/gitops-dispatch.yml@main
|
uses: niko/gitea-ci-library/.gitea/workflows/gitops-dispatch.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
@@ -85,7 +74,7 @@ jobs:
|
|||||||
|
|
||||||
tag-maintenance:
|
tag-maintenance:
|
||||||
name: Move provider version tag
|
name: Move provider version tag
|
||||||
needs: [docker-build-push, helm-build-push]
|
needs: [docker-gitops]
|
||||||
if: success()
|
if: success()
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/tag-maintenance.yml@main
|
uses: niko/gitea-ci-library/.gitea/workflows/tag-maintenance.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -10,14 +10,14 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
load-config:
|
load-config:
|
||||||
name: Load git-pages.gitea-env.conf to pipeline env
|
name: Config load
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
|
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
config_path: .gitea/workflows/git-pages.gitea-env.conf
|
config_path: .gitea/workflows/git-pages.gitea-env.conf
|
||||||
|
|
||||||
check-version:
|
check-version:
|
||||||
name: Check existing artifact
|
name: Latest version
|
||||||
needs: [load-config]
|
needs: [load-config]
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/check-version.yml@main
|
uses: niko/gitea-ci-library/.gitea/workflows/check-version.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -36,9 +36,9 @@ jobs:
|
|||||||
chart_path: git-pages
|
chart_path: git-pages
|
||||||
|
|
||||||
chart-gitops:
|
chart-gitops:
|
||||||
name: Update chart to the cluster
|
name: GitOps
|
||||||
needs: [helm-push]
|
needs: [helm-push, load-config, check-version]
|
||||||
uses: niko/gitea-ci-library/.gitea/workflows/gitops-dispatch.yml
|
uses: niko/gitea-ci-library/.gitea/workflows/gitops-dispatch.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
env_json: ${{ needs.load-config.outputs.env_json }}
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
||||||
|
|||||||
Reference in New Issue
Block a user