Files
argocd-deploy/.gitea/workflows/homelab-deploy.yaml
lucasdpt 874e8ec4b8
All checks were successful
semantic-release / release (push) Successful in 28s
feat: try to fix
2026-04-21 14:26:05 +02:00

58 lines
1.6 KiB
YAML

name: Deploy on argocd repo
on:
workflow_call:
inputs:
file-path:
description: Path to the values/manifest file to update
required: true
type: string
update-helm:
description: Whether to update the Helm chart version
required: false
type: boolean
default: false
update-image:
description: Whether to update the image tag
required: false
type: boolean
default: false
helm-path:
description: yq path to the Helm version field
required: false
type: string
default: .spec.source.targetRevision
helm-version:
description: Helm chart version to set
required: false
type: string
default: ""
image-path:
description: yq path to the image tag field
required: false
type: string
default: ""
image-version:
description: Image tag to set
required: false
type: string
default: ""
secrets:
TOKEN:
required: true
jobs:
deploy:
uses: https://gitea.ldpt.fr/actions/argocd-deploy/.gitea/workflows/deploy.yaml@main
with:
server-url: https://github.com
argocd-repo: lucasdpt/k8s-homelab
file-path: ${{ inputs.file-path }}
update-helm: ${{ inputs.update-helm == true }}
update-image: ${{ inputs.update-image == true }}
helm-path: ${{ inputs.helm-path }}
helm-version: ${{ inputs.helm-version }}
image-path: ${{ inputs.image-path }}
image-version: ${{ inputs.image-version }}
secrets:
TOKEN: ${{ secrets.TOKEN }}