feat: add node labels #1

Merged
t.behrendt merged 6 commits from feat-add-node-labels into main 2025-09-26 21:08:49 +02:00
2 changed files with 3 additions and 38 deletions
Showing only changes of commit af5abef4e9 - Show all commits

View File

@@ -10,7 +10,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.filter.outputs.k8s }}
helm: ${{ steps.filter.outputs.helm }}
steps:
- uses: actions/checkout@v5
with:
@@ -21,47 +20,22 @@ jobs:
filters: |
k8s:
- 'k8s/**'
helm:
- 'values/**'
- 'helmfile.yaml'
deploy:
runs-on: ubuntu-latest
needs: check-changes
if: ${{ needs.check-changes.outputs.changes == 'true' || needs.check-changes.outputs.helm == 'true' }}
if: ${{ needs.check-changes.outputs.changes == 'true' }}
steps:
- uses: actions/checkout@v5
- uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/actions/extract-namespace-from-repo-name@v0
id: namespace
with:
repo: ${{ github.repository }}
- uses: azure/setup-kubectl@v4
- uses: azure/setup-helm@v4
- uses: azure/k8s-set-context@v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Set restic backup secret
uses: azure/k8s-create-secret@v5
with:
namespace: ${{ steps.namespace.outputs.namespace }}
secret-name: backupsidecar-secret
secret-type: generic
data: |
{
"restic_password": "${{ secrets.RESTIC_PASSWORD }}",
"restic_rest_username": "${{ secrets.RESTIC_REST_USERNAME }}",
"restic_rest_password": "${{ secrets.RESTIC_REST_PASSWORD }}",
"gotify_token": "${{ secrets.GOTIFY_TOKEN }}"
}
- name: Deploy
uses: azure/k8s-deploy@v5.0.4
with:
action: deploy
manifests: "k8s/"
strategy: basic
namespace: ${{ steps.namespace.outputs.namespace }}
- name: Deploy helm
uses: helmfile/helmfile-action@v2
with:
helmfile-args: apply
server-side: true

View File

@@ -10,12 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: https://gitea.t000-n.de/t.behrendt/k_deploy_workflows/.gitea/actions/extract-namespace-from-repo-name@v0
id: namespace
with:
repo: ${{ github.repository }}
- uses: azure/setup-kubectl@v4
- uses: azure/setup-helm@v4
- uses: azure/k8s-set-context@v4
with:
method: kubeconfig
@@ -23,10 +18,6 @@ jobs:
- name: Validate
uses: azure/k8s-lint@v3
with:
namespace: ${{ steps.namespace.outputs.namespace }}
lintType: dryrun
manifests: "k8s/"
- name: Validate Helm
uses: helmfile/helmfile-action@v2.0.5
with:
helmfile-args: diff
server-side: true