diff --git a/action.yaml b/action.yaml index 9b359eb..bd2959f 100644 --- a/action.yaml +++ b/action.yaml @@ -4,7 +4,7 @@ description: Use Updatecli to update deployments for ArgoCD inputs: updatecli-config: description: Override default updatecli config - default: ${{ forge.action_path }}/updatecli.yaml + default: "" registry-url: description: Registry URL default: git.cleverthis.com @@ -59,6 +59,11 @@ runs: echo "Unknown target branch. We are not coming from main, master, nor develop branch." exit 1 fi + + configFilePath="${{ inputs.updatecli-config }}" + if [ -z "$configFilePath" ]; then + configFilePath="${{ forge.action_path }}/updatecli.yaml" + fi export TARGET_BRANCH - updatecly apply --config ${{ inputs.updatecli-config }} + updatecli apply --config "$configFilePath" diff --git a/updatecli.yaml b/updatecli.yaml index 2fffa0b..7bf65bb 100644 --- a/updatecli.yaml +++ b/updatecli.yaml @@ -54,9 +54,9 @@ actions: kind: gitea/pullrequest scmid: helm-chart spec: - url: '{{ requiredEnv "SERVER_URL" }}' - owner: '{{ requiredEnv "REPO_OWNER" }}' - repository: '{{ requiredEnv "REPO_NAME" }}' + url: '{{ requiredEnv "REGISTRY_URL" }}' + owner: '{{ requiredEnv "CHARTS_REPO_ORG" }}' + repository: '{{ requiredEnv "CHARTS_REPO_NAME" }}' username: '{{ requiredEnv "REGISTRY_USER" }}' token: '{{ requiredEnv "REGISTRY_PASSWORD" }}' title: 'chore({{ requiredEnv "TARGET_NAME" }}): bump chart version and set app version to {{ source "appVersion" }}'