Skip to content

Commit

Permalink
Pass refspec and version on the CLI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
notartom committed Feb 11, 2024
1 parent 7448e70 commit aef95a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/localdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aef95a9

Please sign in to comment.