push-to-registry

Push Packer build metadata to the HCP Packer registry.

790|117|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/hashicorp/agent-skills --skill push-to-registry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: push-to-registry
Source: https://github.com/hashicorp/agent-skills/tree/main/packer/hcp/skills/push-to-registry
Command: npx skills add https://github.com/hashicorp/agent-skills --skill push-to-registry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables teams to push metadata from Packer builds to the HCP Packer registry, enabling centralized tracking, governance, and lifecycle management without manual bookkeeping.

Core Features & Use Cases

  • Push build metadata to HCP Packer registry automatically as part of CI/CD or local builds.
  • Associate builds with an HCP project and bucket for traceability and audits.
  • Use case: In a CI workflow, after a Packer build completes, push the registry metadata to ensure governance and lifecycle tracking.

Quick Start

Use the push-to-registry skill in your CI job to publish build metadata to HCP Packer registry.

Frequently Asked Questions about push-to-registry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I push Packer build metadata to the HCP registry for governance?

To push Packer build metadata to the HCP registry, use this Skill in your CI/CD pipeline or local build. It requires a configured Packer build with an hcp_packer_registry block and valid HCP credentials to write registry entries.

What is HCP Packer registry lifecycle governance and when do I need it?

HCP Packer registry lifecycle governance is the centralized tracking and auditing of machine image builds. You need it to maintain traceability and manage image lifecycles automatically without manual bookkeeping across your infrastructure.

Do I need an hcp_packer_registry block to track image lifecycles in CI/CD?

Yes, you need an hcp_packer_registry block configured in your Packer build. This block alongside valid HCP credentials is required to successfully push build metadata and track image lifecycles in your pipelines.

Can I use local Packer builds to push audit trails to the HCP Packer registry?

Yes, you can use local Packer builds to push audit trails to the HCP Packer registry. The Skill applies to both CI/CD pipelines and local executions to track image lifecycles and ensure centralized governance.

What's the best way to associate Packer builds with an HCP project for audits?

The best way to associate Packer builds with an HCP project for audits is pushing build metadata to the HCP Packer registry. This automatically links builds to specific projects and buckets for traceability and audit trails.