From aef95a94512d1ead50454587c42eeb52969118a0 Mon Sep 17 00:00:00 2001 From: Artom Lifshitz Date: Sun, 11 Feb 2024 11:43:36 -0500 Subject: [PATCH] Pass refspec and version on the CLI Looks like playbooks vars (as included by the vars_files item in localdev.yaml) take precedence over inventory vars, so our passing of the catalog git refspec and version via the inventory file was always doomed to failure. Pass them as -e options on the CLI instead. --- .github/workflows/localdev.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/localdev.yaml b/.github/workflows/localdev.yaml index 0078351..fd76af3 100644 --- a/.github/workflows/localdev.yaml +++ b/.github/workflows/localdev.yaml @@ -41,9 +41,12 @@ jobs: playbook: localdev.yaml inventory: | [localdev] - ${{ steps.lxc.outputs.ip }} ansible_user=root ci_env=development ci_log_threshold=4 catalog_git_refspec=${{ inputs.catalog_git_refspec }} catalog_git_version=${{ inputs.catalog_git_version }} + ${{ steps.lxc.outputs.ip }} ansible_user=root ci_env=development ci_log_threshold=4 options: --verbose + # Set these on the CLI options to make sure they take precedence + -e "catalog_git_refspec=${{ inputs.catalog_git_refspec }}" + -e "catalog_git_version=${{ inputs.catalog_git_version }}" - name: Ensure resulting website health # This relies on the LXC container creation step having added an