push-to-registry

Installation
Summary

Push Packer build metadata to HCP Packer registry for image lifecycle tracking and governance.

  • Registers build artifacts in HCP Packer with minimal overhead, storing metadata only (not actual images) and adding less than one minute to build time
  • Supports bucket-level labels (updated per build) and immutable build-level labels (git SHA, timestamps) for version control and compliance tracking
  • Integrates with Terraform via hcp_packer_artifact data source to query and deploy images across infrastructure
  • Requires HCP service principal authentication via environment variables; includes GitHub Actions CI/CD example for automated builds and pushes
SKILL.md

Push to HCP Packer Registry

Configure Packer templates to push build metadata to HCP Packer registry.

Reference: HCP Packer Registry

Note: HCP Packer is free for basic use. Builds push metadata only (not actual images), adding minimal overhead (<1 minute).

Basic Registry Configuration

packer {
  required_version = ">= 1.7.7"
}

variable "image_name" {
  type    = string
  default = "web-server"
}
Related skills

More from hashicorp/agent-skills

Installs
799
GitHub Stars
613
First Seen
Jan 29, 2026