[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F5Z3FVCPDVVFA1WSZNG376":3,"skill-same:01M6F5Z3FVCPDVVFA1WSZNG376":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6F5Z3FVCPDVVFA1WSZNG376","push-to-registry",null,"Push Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version control and governance.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fhashicorp\u002Fagent-skills\u002Fpush-to-registry\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37],"registry","push","push to registry","image","governance","metadata","lifecycle","tracking","use","version","build","control","packer","with","2026-11-10 10:12:30",false,"---\nname: push-to-registry\ndescription: Push Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version control and governance.\n---\n\n# Push to HCP Packer Registry\n\nConfigure Packer templates to push build metadata to HCP Packer registry.\n\n**Reference:** [HCP Packer Registry](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fhcp\u002Fdocs\u002Fpacker)\n\n> **Note:** HCP Packer is free for basic use. Builds push metadata only (not actual images), adding minimal overhead (\u003C1 minute).\n\n## Basic Registry Configuration\n\n```hcl\npacker {\n  required_version = \">= 1.7.7\"\n}\n\nvariable \"image_name\" {\n  type    = string\n  default = \"web-server\"\n}\n\nlocals {\n  timestamp = regex_replace(timestamp(), \"[- TZ:]\", \"\")\n}\n\nsource \"amazon-ebs\" \"ubuntu\" {\n  region        = \"us-west-2\"\n  instance_type = \"t3.micro\"\n\n  source_ami_filter {\n    filters = {\n      name = \"ubuntu\u002Fimages\u002F*ubuntu-jammy-22.04-amd64-server-*\"\n    }\n    most_recent = true\n    owners      = [\"099720109477\"]\n  }\n\n  ssh_username = \"ubuntu\"\n  ami_name     = \"${var.image_name}-${local.timestamp}\"\n}\n\nbuild {\n  sources = [\"source.amazon-ebs.ubuntu\"]\n\n  hcp_packer_registry {\n    bucket_name = var.image_name\n    description = \"Ubuntu 22.04 base image for web servers\"\n\n    bucket_labels = {\n      \"os\"   = \"ubuntu\"\n      \"team\" = \"platform\"\n    }\n\n    build_labels = {\n      \"build-time\" = local.timestamp\n    }\n  }\n\n  provisioner \"shell\" {\n    inline = [\n      \"sudo apt-get update\",\n      \"sudo apt-get upgrade -y\",\n    ]\n  }\n}\n```\n\n## Authentication\n\nSet environment variables before building:\n\n```bash\nexport HCP_CLIENT_ID=\"your-service-principal-client-id\"\nexport HCP_CLIENT_SECRET=\"your-service-principal-secret\"\nexport HCP_ORGANIZATION_ID=\"your-org-id\"\nexport HCP_PROJECT_ID=\"your-project-id\"\n\npacker build .\n```\n\n### Create HCP Service Principal\n\n1. Navigate to HCP → Access Control (IAM)\n2. Create Service Principal\n3. Grant \"Contributor\" role on project\n4. Generate client secret\n5. Save client ID and secret\n\n## Registry Configuration Options\n\n### bucket_name (required)\nThe image identifier. Must stay consistent across builds!\n\n```hcl\nbucket_name = \"web-server\"  # Keep this constant\n```\n\n### bucket_labels (optional)\nMetadata at bucket level. Updates with each build.\n\n```hcl\nbucket_labels = {\n  \"os\"        = \"ubuntu\"\n  \"team\"      = \"platform\"\n  \"component\" = \"web\"\n}\n```\n\n### build_labels (optional)\nMetadata for each iteration. Immutable after build completes.\n\n```hcl\nbuild_labels = {\n  \"build-time\" = local.timestamp\n  \"git-commit\" = var.git_commit\n}\n```\n\n## CI\u002FCD Integration\n\n### GitHub Actions\n\n```yaml\nname: Build and Push to HCP Packer\n\non:\n  push:\n    branches: [main]\n\nenv:\n  HCP_CLIENT_ID: ${{ secrets.HCP_CLIENT_ID }}\n  HCP_CLIENT_SECRET: ${{ secrets.HCP_CLIENT_SECRET }}\n  HCP_ORGANIZATION_ID: ${{ secrets.HCP_ORGANIZATION_ID }}\n  HCP_PROJECT_ID: ${{ secrets.HCP_PROJECT_ID }}\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: hashicorp\u002Fsetup-packer@main\n\n      - name: Build and push\n        run: |\n          packer init .\n          packer build \\\n            -var \"git_commit=${{ github.sha }}\" \\\n            .\n```\n\n## Querying in Terraform\n\n```hcl\ndata \"hcp_packer_artifact\" \"ubuntu\" {\n  bucket_name  = \"web-server\"\n  channel_name = \"production\"\n  platform     = \"aws\"\n  region       = \"us-west-2\"\n}\n\nresource \"aws_instance\" \"web\" {\n  ami           = data.hcp_packer_artifact.ubuntu.external_identifier\n  instance_type = \"t3.micro\"\n\n  tags = {\n    PackerBucket = data.hcp_packer_artifact.ubuntu.bucket_name\n  }\n}\n```\n\n## Common Issues\n\n**Authentication Failed**\n- Verify HCP_CLIENT_ID and HCP_CLIENT_SECRET\n- Ensure service principal has Contributor role\n- Check organization and project IDs\n\n**Bucket Name Mismatch**\n- Keep `bucket_name` consistent across builds\n- Don't include timestamps in bucket_name\n- Creates new bucket if name changes\n\n**Build Fails**\n- Packer fails immediately if can't push metadata\n- Prevents drift between artifacts and registry\n- Check network connectivity to HCP API\n\n## Best Practices\n\n- **Consistent bucket names** - Never change for same image type\n- **Meaningful labels** - Use for versions, teams, compliance\n- **CI\u002FCD automation** - Automate builds and registry pushes\n- **Immutable build labels** - Put changing data (git SHA, date) in build_labels\n\n## References\n\n- [HCP Packer Documentation](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fhcp\u002Fdocs\u002Fpacker)\n- [hcp_packer_registry Block](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fpacker\u002Fdocs\u002Ftemplates\u002Fhcl_templates\u002Fblocks\u002Fbuild\u002Fhcp_packer_registry)\n- [HCP Terraform Provider](https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fhashicorp\u002Fhcp\u002Flatest\u002Fdocs\u002Fdata-sources\u002Fpacker_artifact)\n\n","# Push to HCP Packer Registry\n\nConfigure Packer templates to push build metadata to HCP Packer registry.\n\n**Reference:** [HCP Packer Registry](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fhcp\u002Fdocs\u002Fpacker)\n\n> **Note:** HCP Packer is free for basic use. Builds push metadata only (not actual images), adding minimal overhead (\u003C1 minute).\n\n## Basic Registry Configuration\n\n```hcl\npacker {\n  required_version = \">= 1.7.7\"\n}\n\nvariable \"image_name\" {\n  type    = string\n  default = \"web-server\"\n}\n\nlocals {\n  timestamp = regex_replace(timestamp(), \"[- TZ:]\", \"\")\n}\n\nsource \"amazon-ebs\" \"ubuntu\" {\n  region        = \"us-west-2\"\n  instance_type = \"t3.micro\"\n\n  source_ami_filter {\n    filters = {\n      name = \"ubuntu\u002Fimages\u002F*ubuntu-jammy-22.04-amd64-server-*\"\n    }\n    most_recent = true\n    owners      = [\"099720109477\"]\n  }\n\n  ssh_username = \"ubuntu\"\n  ami_name     = \"${var.image_name}-${local.timestamp}\"\n}\n\nbuild {\n  sources = [\"source.amazon-ebs.ubuntu\"]\n\n  hcp_packer_registry {\n    bucket_name = var.image_name\n    description = \"Ubuntu 22.04 base image for web servers\"\n\n    bucket_labels = {\n      \"os\"   = \"ubuntu\"\n      \"team\" = \"platform\"\n    }\n\n    build_labels = {\n      \"build-time\" = local.timestamp\n    }\n  }\n\n  provisioner \"shell\" {\n    inline = [\n      \"sudo apt-get update\",\n      \"sudo apt-get upgrade -y\",\n    ]\n  }\n}\n```\n\n## Authentication\n\nSet environment variables before building:\n\n```bash\nexport HCP_CLIENT_ID=\"your-service-principal-client-id\"\nexport HCP_CLIENT_SECRET=\"your-service-principal-secret\"\nexport HCP_ORGANIZATION_ID=\"your-org-id\"\nexport HCP_PROJECT_ID=\"your-project-id\"\n\npacker build .\n```\n\n### Create HCP Service Principal\n\n1. Navigate to HCP → Access Control (IAM)\n2. Create Service Principal\n3. Grant \"Contributor\" role on project\n4. Generate client secret\n5. Save client ID and secret\n\n## Registry Configuration Options\n\n### bucket_name (required)\nThe image identifier. Must stay consistent across builds!\n\n```hcl\nbucket_name = \"web-server\"  # Keep this constant\n```\n\n### bucket_labels (optional)\nMetadata at bucket level. Updates with each build.\n\n```hcl\nbucket_labels = {\n  \"os\"        = \"ubuntu\"\n  \"team\"      = \"platform\"\n  \"component\" = \"web\"\n}\n```\n\n### build_labels (optional)\nMetadata for each iteration. Immutable after build completes.\n\n```hcl\nbuild_labels = {\n  \"build-time\" = local.timestamp\n  \"git-commit\" = var.git_commit\n}\n```\n\n## CI\u002FCD Integration\n\n### GitHub Actions\n\n```yaml\nname: Build and Push to HCP Packer\n\non:\n  push:\n    branches: [main]\n\nenv:\n  HCP_CLIENT_ID: ${{ secrets.HCP_CLIENT_ID }}\n  HCP_CLIENT_SECRET: ${{ secrets.HCP_CLIENT_SECRET }}\n  HCP_ORGANIZATION_ID: ${{ secrets.HCP_ORGANIZATION_ID }}\n  HCP_PROJECT_ID: ${{ secrets.HCP_PROJECT_ID }}\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: hashicorp\u002Fsetup-packer@main\n\n      - name: Build and push\n        run: |\n          packer init .\n          packer build \\\n            -var \"git_commit=${{ github.sha }}\" \\\n            .\n```\n\n## Querying in Terraform\n\n```hcl\ndata \"hcp_packer_artifact\" \"ubuntu\" {\n  bucket_name  = \"web-server\"\n  channel_name = \"production\"\n  platform     = \"aws\"\n  region       = \"us-west-2\"\n}\n\nresource \"aws_instance\" \"web\" {\n  ami           = data.hcp_packer_artifact.ubuntu.external_identifier\n  instance_type = \"t3.micro\"\n\n  tags = {\n    PackerBucket = data.hcp_packer_artifact.ubuntu.bucket_name\n  }\n}\n```\n\n## Common Issues\n\n**Authentication Failed**\n- Verify HCP_CLIENT_ID and HCP_CLIENT_SECRET\n- Ensure service principal has Contributor role\n- Check organization and project IDs\n\n**Bucket Name Mismatch**\n- Keep `bucket_name` consistent across builds\n- Don't include timestamps in bucket_name\n- Creates new bucket if name changes\n\n**Build Fails**\n- Packer fails immediately if can't push metadata\n- Prevents drift between artifacts and registry\n- Check network connectivity to HCP API\n\n## Best Practices\n\n- **Consistent bucket names** - Never change for same image type\n- **Meaningful labels** - Use for versions, teams, compliance\n- **CI\u002FCD automation** - Automate builds and registry pushes\n- **Immutable build labels** - Put changing data (git SHA, date) in build_labels\n\n## References\n\n- [HCP Packer Documentation](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fhcp\u002Fdocs\u002Fpacker)\n- [hcp_packer_registry Block](https:\u002F\u002Fdeveloper.hashicorp.com\u002Fpacker\u002Fdocs\u002Ftemplates\u002Fhcl_templates\u002Fblocks\u002Fbuild\u002Fhcp_packer_registry)\n- [HCP Terraform Provider](https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fhashicorp\u002Fhcp\u002Flatest\u002Fdocs\u002Fdata-sources\u002Fpacker_artifact)\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fhashicorp\u002Fagent-skills\u002Fpush-to-registry",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill push-to-registry",{"tool":58,"command":59},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill push-to-registry",{"tool":61,"command":62},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill push-to-registry","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fhashicorp\u002Fagent-skills\u002Fpush-to-registry\u002FSKILL.md",true,[],[67,79,89,98,104,111],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":75,"publishedAt":38},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[72],{"categoryNo":73,"categoryName":74,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[76,77,78],"model","model hierarchy","model hierarchy skill",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":85,"publishedAt":38},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[84],{"categoryNo":73,"categoryName":74,"taxonomyType":21,"taxonomyTypeDesc":22},[86,87,88],"MCP","zoom","zoom mcp",{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":38},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[95,96,97,87],"sdk","zoom apps sdk","apps",{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":38},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[100],{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":110,"publishedAt":38},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[109],{"categoryNo":73,"categoryName":74,"taxonomyType":21,"taxonomyTypeDesc":22},[106],{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":38},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[113]]