58 lines
1.6 KiB
YAML
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-gitops
|
|
file-path: ${{ inputs.file-path }}
|
|
update-helm: ${{ inputs.update-helm }}
|
|
update-image: ${{ inputs.update-image }}
|
|
helm-path: ${{ inputs.helm-path }}
|
|
helm-version: ${{ inputs.helm-version }}
|
|
image-path: ${{ inputs.image-path }}
|
|
image-version: ${{ inputs.image-version }}
|
|
secrets:
|
|
TOKEN: ${{ secrets.TOKEN }} |