-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83fbd8e
commit c5090d7
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
website/content/docs/templates/hcl_templates/blocks/build/hcp_packer_registry.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
description: > | ||
The hcp_packer_registry allows operators the ability to customize the metadata sent to HCP Packer Registry. | ||
It configures the base details needed for creating or updating an image within HCP PAR. | ||
page_title: hcp_packer_registry - build - Blocks | ||
--- | ||
|
||
# The `hcp_packer_registry` block | ||
|
||
The `hcp_packer_registry` block nested in a build block, allows operators the ability to customize the metadata sent to | ||
HCP Packer Registry. It configures the base details needed for creating or updating an image within HCP PAR. | ||
|
||
The presence of a `hcp_packer_registry` block will enable HCP PAR mode, and all the source builds within that build block | ||
will be pushed to the remote registry as far the appropriate HCP credentials are set (`HCP_CLIENT_ID` and `HCP_CLIENT_SECRET`). | ||
|
||
```hcl | ||
# file: builds.pkr.hcl | ||
source "file" "basic-example" { | ||
content = "Lorem ipsum dolor sit amet" | ||
target = "sample_artifact" | ||
} | ||
build { | ||
name = "example-artifact" | ||
hcp_packer_registry { | ||
description = <<EOT | ||
Some nice description about the image which artifact is being published to HCP Packer Registry. =D | ||
EOT | ||
labels = { | ||
"foo-version" = "3.4.0", | ||
"foo" = "bar", | ||
} | ||
} | ||
sources = ["sources.file.basic-example"] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters