feat: add namespace override

This commit is contained in:
2026-05-26 20:42:17 +02:00
parent cc54a9d3c6
commit e2da15195a
3 changed files with 29 additions and 15 deletions
+7 -1
View File
@@ -28,6 +28,11 @@ on:
required: false
default: "{}"
type: string
namespace:
description: "Override the default namespace (extracted from repository name)"
required: false
default: ""
type: string
jobs:
detect-service-type:
@@ -76,7 +81,7 @@ jobs:
- name: Set restic backup secret
uses: azure/k8s-create-secret@5e49ad902ac755e0815974a44904c728da961747 # v6.0.0
with:
namespace: ${{ steps.namespace.outputs.namespace }}
namespace: ${{ inputs.namespace || steps.namespace.outputs.namespace }}
secret-name: backupsidecar-secret
secret-type: generic
data: |
@@ -133,6 +138,7 @@ jobs:
uses: helmfile/helmfile-action@f6f7844b9e6d9f5ac8cf4cdae8ada1a42755c036 # v2.4.4
with:
helmfile-args: apply
namespace: ${{ inputs.namespace || steps.namespace.outputs.namespace }}
env: ${{ fromJSON(inputs.helmfile_env) }}
# Summary job that always runs to show what was deployed