
Push To Registry
hashicorp/agent-skillsOfficial
Configures Packer templates to push build metadata to the HCP Packer registry for image version tracking.
- CCM score
- 73 of 100
- skills.sh installs
- 3.2K
- GitHub stars
- 941
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the
hcp_packer_registrybuild block, HCP service principal authentication, and querying artifacts from Terraform - Includes HCL template examples, a GitHub Actions workflow, and a
hcp_packer_artifactdata source example with channel selection - Enforces consistent
bucket_namevalues, separates mutablebucket_labelsfrom immutablebuild_labels, and fails builds when metadata cannot be pushed - Designed for teams integrating Packer image builds with HCP Packer for version control and governance
Install
$ npx -y skills add hashicorp/agent-skills --skill push-to-registry -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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"
}
locals {
timestamp = regex_replace(timestamp(), "[- TZ:]", "")
}
source "amazon-ebs" "ubuntu" {
region = "us-west-2"
instance_type = "t3.micro"
source_ami_filter {
filters = {
name = "ubuntu/images/*ubuntu-jammy-22.04-amd64-server-*"
}
most_recent = true
owners = ["099720109477"]
}
ssh_username = "ubuntu"
ami_name = "${var.image_name}-${local.timestamp}"
}
build {
sources = ["source.amazon-ebs.ubuntu"]
hcp_packer_registry {
bucket_name = var.image_name
description = "Ubuntu 22.04 base image for web servers"
bucket_labels = {
"os" = "ubuntu"
"team" = "platform"
}
Details
- Repository
- github.com/hashicorp/agent-skills
- Category
- DevOps & Cloud
- First seen
- Apr 16, 2026
More from hashicorp/agent-skills
All 16- Azure Image Builder2.9K
- Windows Builder2.9K
- Terraform Style Guide13.8K
- Terraform Test9.5K
- Refactor Module6.9K
- Terraform Stacks5.9K
- Terraform Search Import5.2K
- Provider Resources4.3K
- New Terraform Provider4.1K
- Provider Actions4.1K
- Run Acceptance Tests3.9K
- Azure Verified Modules3.5K
- Provider Test Patterns3.5K
- Provider Docs3.4K
- Aws Ami Builder3.4K
Similar to Push To Registry
More DevOps & Cloud
azure-image-builderSkillhashicorp/agent-skills2.9K installsPacker template recipes for building Azure managed images and Compute Gallery image versions with the azure-arm builder.
container-registry-managementSkillaj-geddes/useful-ai-prompts446 installsPractical container registry management for Docker Hub, ECR, and GCR, covering scanning, retention, and access control.
artifact-managementSkillaj-geddes/useful-ai-prompts441 installsManage build artifacts, Docker images, and registries with multi-stage builds, retention, and versioning guidance.
Containerization AssistMCP serverazure45 starsContainerize, scan, and deploy Docker images and Kubernetes manifests through AI-guided tools.