Skip to content

feat: add reusable Packer + ansible-lint workflows#1

Open
posquit0 wants to merge 1 commit into
mainfrom
feat/packer-workflows
Open

feat: add reusable Packer + ansible-lint workflows#1
posquit0 wants to merge 1 commit into
mainfrom
feat/packer-workflows

Conversation

@posquit0

Copy link
Copy Markdown
Member

Reusable workflows for the new packer-templates CI pipeline, matching the existing <domain>.<tool>.yaml convention (e.g. yaml.yamllint.yaml).

New reusable workflows

Workflow Purpose
packer.fmt.yaml packer fmt -check -diff -recursive on packer_target_dir
packer.validate.yaml packer init + packer validate on packer_target_dir (exports AWS_DEFAULT_REGION so validate resolves a region without AWS creds)
ansible.ansible-lint.yaml pip install ansible-lint, optionally install Galaxy collections from galaxy_requirements_file, then ansible-lint --format github from working_directory

All inputs are typed/optional with descriptions; secrets.token optional — consistent with the other reusable workflows. Actions pinned to majors (actions/checkout@v6, hashicorp/setup-packer@v3, actions/setup-python@v5).

Validation

yamllint (repo config) + actionlint pass.

Consumed by

The tedilabs/github PR that provisions packer.integration.yaml / ansible.integration.yaml into packer-templates (companion PR).

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@posquit0 posquit0 force-pushed the feat/packer-workflows branch from 804e486 to feb7651 Compare June 22, 2026 09:38
- packer.fmt.yaml: packer fmt -check -diff -recursive
- packer.validate.yaml: packer init + validate (AWS_DEFAULT_REGION for region-less validate)
- ansible.ansible-lint.yaml: ansible-lint (+ optional Galaxy collections)

Tools are installed via the mise.setup-tools composite action.
@posquit0 posquit0 force-pushed the feat/packer-workflows branch from 1074083 to 093e32b Compare June 23, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant