Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f7f5bc1b47 | |||
| d41aab78cb | |||
| 5331d22579 | |||
| c41eeb249e | |||
| c373c34c83 | |||
| 62201e92e5 | |||
| 17a08dd620 | |||
| ed39c0c50e | |||
| f0565b94fc | |||
| 00e6a2342f | |||
| a7cfa06300 | |||
| bca32c37b1 | |||
| 67ed9a6a2c | |||
| f53c854d74 | |||
| 44c0eef76e | |||
| 9f0cda99eb | |||
| 727e9408a4 | |||
| b85ff0a4d5 | |||
| 77f9944b87 | |||
| 86a968fc52 | |||
| a7f40d2070 | |||
| 1a37af7c7e | |||
| 4dc38c45d9 | |||
| 6fae395fbf |
@@ -41,7 +41,7 @@ jobs:
|
|||||||
has_helmfile: ${{ steps.check-helmfile.outputs.exists }}
|
has_helmfile: ${{ steps.check-helmfile.outputs.exists }}
|
||||||
has_k8s: ${{ steps.check-k8s.outputs.exists }}
|
has_k8s: ${{ steps.check-k8s.outputs.exists }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Check if helmfile.yaml exists
|
- name: Check if helmfile.yaml exists
|
||||||
id: check-helmfile
|
id: check-helmfile
|
||||||
run: |
|
run: |
|
||||||
@@ -68,15 +68,15 @@ jobs:
|
|||||||
needs: detect-service-type
|
needs: detect-service-type
|
||||||
if: needs.detect-service-type.outputs.has_k8s == 'true'
|
if: needs.detect-service-type.outputs.has_k8s == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.deploy_branch }}
|
ref: ${{ inputs.deploy_branch }}
|
||||||
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
||||||
id: namespace
|
id: namespace
|
||||||
with:
|
with:
|
||||||
repo: ${{ github.repository }}
|
repo: ${{ github.repository }}
|
||||||
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
|
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4.0.1
|
||||||
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4
|
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2
|
||||||
with:
|
with:
|
||||||
method: kubeconfig
|
method: kubeconfig
|
||||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
@@ -104,7 +104,7 @@ jobs:
|
|||||||
echo "No custom secrets to create"
|
echo "No custom secrets to create"
|
||||||
fi
|
fi
|
||||||
- name: Deploy Kubernetes manifests
|
- name: Deploy Kubernetes manifests
|
||||||
uses: azure/k8s-deploy@6f7c489cecd8da05646259d9fa3daae92e095c7b # v5.0.4
|
uses: azure/k8s-deploy@c8cfec839dc09896b3b8cc40cd13d04792680771 # v5.1.0
|
||||||
with:
|
with:
|
||||||
action: deploy
|
action: deploy
|
||||||
manifests: "${{ inputs.k8s_dir }}"
|
manifests: "${{ inputs.k8s_dir }}"
|
||||||
@@ -119,16 +119,16 @@ jobs:
|
|||||||
needs.detect-service-type.outputs.has_k8s == 'true' &&
|
needs.detect-service-type.outputs.has_k8s == 'true' &&
|
||||||
inputs.skip_helm_deployment != 'true'
|
inputs.skip_helm_deployment != 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.deploy_branch }}
|
ref: ${{ inputs.deploy_branch }}
|
||||||
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
||||||
id: namespace
|
id: namespace
|
||||||
with:
|
with:
|
||||||
repo: ${{ github.repository }}
|
repo: ${{ github.repository }}
|
||||||
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
|
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4.0.1
|
||||||
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
||||||
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4
|
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2
|
||||||
with:
|
with:
|
||||||
method: kubeconfig
|
method: kubeconfig
|
||||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
@@ -156,14 +156,14 @@ jobs:
|
|||||||
echo "No custom secrets to create"
|
echo "No custom secrets to create"
|
||||||
fi
|
fi
|
||||||
- name: Deploy Helm
|
- name: Deploy Helm
|
||||||
uses: helmfile/helmfile-action@f64d5db9f8660aae0205b5fcfc56577d44acefab # v2
|
uses: helmfile/helmfile-action@d9fefe29b0d07e9ab187ecfe1d63eff91e0a070c # v2.4.1
|
||||||
with:
|
with:
|
||||||
helmfile-args: apply
|
helmfile-args: apply
|
||||||
|
|
||||||
# Summary job that always runs to show what was deployed
|
# Summary job that always runs to show what was deployed
|
||||||
deployment-summary:
|
deployment-summary:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [detect-service-type, deploy-k8s, deploy-helm]
|
needs: [ detect-service-type, deploy-k8s, deploy-helm ]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Deployment Summary
|
- name: Deployment Summary
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
has_helmfile: ${{ steps.check-helmfile.outputs.exists }}
|
has_helmfile: ${{ steps.check-helmfile.outputs.exists }}
|
||||||
has_k8s: ${{ steps.check-k8s.outputs.exists }}
|
has_k8s: ${{ steps.check-k8s.outputs.exists }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Check if helmfile.yaml exists
|
- name: Check if helmfile.yaml exists
|
||||||
id: check-helmfile
|
id: check-helmfile
|
||||||
run: |
|
run: |
|
||||||
@@ -53,18 +53,18 @@ jobs:
|
|||||||
needs: detect-service-type
|
needs: detect-service-type
|
||||||
if: needs.detect-service-type.outputs.has_k8s == 'true'
|
if: needs.detect-service-type.outputs.has_k8s == 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
||||||
id: namespace
|
id: namespace
|
||||||
with:
|
with:
|
||||||
repo: ${{ github.repository }}
|
repo: ${{ github.repository }}
|
||||||
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
|
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4.0.1
|
||||||
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4
|
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2
|
||||||
with:
|
with:
|
||||||
method: kubeconfig
|
method: kubeconfig
|
||||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
- name: Validate k8s manifests
|
- name: Validate k8s manifests
|
||||||
uses: azure/k8s-lint@6aefe5066f95e73d2b140d8835cc95583b886989 # v3
|
uses: azure/k8s-lint@6aefe5066f95e73d2b140d8835cc95583b886989 # v3.0.1
|
||||||
with:
|
with:
|
||||||
namespace: ${{ steps.namespace.outputs.namespace }}
|
namespace: ${{ steps.namespace.outputs.namespace }}
|
||||||
lintType: dryrun
|
lintType: dryrun
|
||||||
@@ -78,26 +78,26 @@ jobs:
|
|||||||
needs.detect-service-type.outputs.has_k8s == 'true' &&
|
needs.detect-service-type.outputs.has_k8s == 'true' &&
|
||||||
inputs.skip_helm_validation != 'true'
|
inputs.skip_helm_validation != 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
- uses: ./.gitea/actions/extract-namespace-from-repo-name
|
||||||
id: namespace
|
id: namespace
|
||||||
with:
|
with:
|
||||||
repo: ${{ github.repository }}
|
repo: ${{ github.repository }}
|
||||||
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4
|
- uses: azure/setup-kubectl@776406bce94f63e41d621b960d78ee25c8b76ede # v4.0.1
|
||||||
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4
|
||||||
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4
|
- uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4.0.2
|
||||||
with:
|
with:
|
||||||
method: kubeconfig
|
method: kubeconfig
|
||||||
kubeconfig: ${{ secrets.KUBECONFIG }}
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
||||||
- name: Validate Helm
|
- name: Validate Helm
|
||||||
uses: helmfile/helmfile-action@f64d5db9f8660aae0205b5fcfc56577d44acefab # v2.1.0
|
uses: helmfile/helmfile-action@d9fefe29b0d07e9ab187ecfe1d63eff91e0a070c # v2.4.1
|
||||||
with:
|
with:
|
||||||
helmfile-args: diff
|
helmfile-args: diff
|
||||||
|
|
||||||
# Summary job that always runs to show what was validated
|
# Summary job that always runs to show what was validated
|
||||||
ci-summary:
|
ci-summary:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [detect-service-type, validate-k8s, validate-helm]
|
needs: [ detect-service-type, validate-k8s, validate-helm ]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: CI Summary
|
- name: CI Summary
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ jobs:
|
|||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Increment tag
|
- name: Increment tag
|
||||||
id: tag
|
id: tag
|
||||||
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.15
|
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@11c694022eefab5876ac346fc9ffc0464b2548c7 # 0.1.30
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
- name: Push tag
|
- name: Push tag
|
||||||
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@0.0.3
|
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@f386e2570df6a796ba0a69865c89ea0c1a7109ab # 0.2.2
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.tag.outputs.new-tag }}
|
tag: ${{ steps.tag.outputs.new-tag }}
|
||||||
|
|||||||
Reference in New Issue
Block a user