This commit is contained in:
@@ -67,10 +67,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Update values
|
- name: Update values
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.update-helm }}" = "true" ]; then
|
if [ "${{ inputs.update-helm }}" = "true" ] && [ -n "${{ inputs.helm-version }}" ] && [ -n "${{ inputs.helm-path }}" ]; then
|
||||||
yq e '${{ inputs.helm-path }} = "${{ inputs.helm-version }}"' -i "${{ inputs.file-path }}"
|
yq e '${{ inputs.helm-path }} = "${{ inputs.helm-version }}"' -i "${{ inputs.file-path }}"
|
||||||
fi
|
fi
|
||||||
if [ "${{ inputs.update-image }}" = "true" ]; then
|
if [ "${{ inputs.update-image }}" = "true" ] && [ -n "${{ inputs.image-version }}" ] && [ -n "${{ inputs.image-path }}" ]; then
|
||||||
yq e '${{ inputs.image-path }} = "${{ inputs.image-version }}"' -i "${{ inputs.file-path }}"
|
yq e '${{ inputs.image-path }} = "${{ inputs.image-version }}"' -i "${{ inputs.file-path }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ jobs:
|
|||||||
uses: https://gitea.ldpt.fr/actions/argocd-deploy/.gitea/workflows/deploy.yaml@main
|
uses: https://gitea.ldpt.fr/actions/argocd-deploy/.gitea/workflows/deploy.yaml@main
|
||||||
with:
|
with:
|
||||||
server-url: https://github.com
|
server-url: https://github.com
|
||||||
argocd-repo: lucasdpt/k8s-homelab-gitops
|
argocd-repo: lucasdpt/k8s-homelab
|
||||||
file-path: ${{ inputs.file-path }}
|
file-path: ${{ inputs.file-path }}
|
||||||
update-helm: ${{ inputs.update-helm }}
|
update-helm: ${{ inputs.update-helm == true }}
|
||||||
update-image: ${{ inputs.update-image }}
|
update-image: ${{ inputs.update-image == true }}
|
||||||
helm-path: ${{ inputs.helm-path }}
|
helm-path: ${{ inputs.helm-path }}
|
||||||
helm-version: ${{ inputs.helm-version }}
|
helm-version: ${{ inputs.helm-version }}
|
||||||
image-path: ${{ inputs.image-path }}
|
image-path: ${{ inputs.image-path }}
|
||||||
|
|||||||
Reference in New Issue
Block a user