lfreleng-actions/🔨 Packer Build Action
Execute Packer validate or build operations via a bastion host
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 6, 2026
- License
- Apache 2.0
Pinned Snippet
uses: lfreleng-actions/packer-build-action@a0197067ae72cdb45459931bcce5d6507b789d96 # v0.1.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| mode | Operation mode: 'validate' (syntax check) or 'build' (full build) | yes | validate |
| bastion_ip | Bastion Tailscale IP address (required for build mode) | no | "" |
| bastion_ssh_user | SSH user for bastion connection | no | ubuntu |
| bastion_ssh_private_key | SSH private key for bastion connection (required for build mode) | no | "" |
| packer_template | Path to Packer template file (auto-discovers if empty) | no | "" |
| packer_vars_file | Path to Packer variables file (auto-discovers if empty) | no | "" |
| packer_working_dir | Working directory containing Packer files | no | . |
| path_prefix | Directory path prefix for action execution | no | . |
| packer_version | Packer version to use | no | 1.11.2 |
| cloud_env_json | Cloud environment JSON config (base64 encoded) | no | "" |
| clouds_yaml | OpenStack clouds.yaml config (base64 encoded) | no | "" |
| openstack_auth_url | OpenStack auth URL | no | "" |
| openstack_project_id | OpenStack project/tenant ID | no | "" |
| openstack_username | OpenStack username | no | "" |
| openstack_password | OpenStack password (base64 decoded if needed) | no | "" |
| openstack_region | OpenStack region | no | ca-ymq-1 |
| openstack_network_id | OpenStack network UUID for builds | no | "" |
| openstack_domain_name | OpenStack domain name (required for v3 API) | no | Default |
| os_cloud | OpenStack cloud name from clouds.yaml | no | openstack |
| ansible_version | Ansible version to install | no | 9.2.0 |
| python_version | Python version for build environment | no | 3.11 |
Outputs
| name | description |
|---|---|
| validation_result | Validation result summary |
| image_name | Built image name (build mode only) |
| image_id | Built image ID (build mode only) |
| build_status | Build completion status |