mirror of https://github.com/hashicorp/packer
anurag/native_sbom
dependabot/go_modules/github.com/hashicorp/packer-plugin-sdk-0.6.6
main
vuln-fix
chore/packer-license-pr-2026-03-11
dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.167.0
karthik/go-git/upgrade
prepare-1.15.1
release/1.15.x
cut-release-1.15.0
go-update
crypto-update
channel-assignment
compliance/update-headers-batch-2
compliance/update-headers-batch-1
compliance/update-headers-batch-3
compliance/update-headers
dependabot/go_modules/packer_test/common/plugin_tester/golang.org/x/crypto-0.45.0
leah/feat/add-comments-to-docs
release/1.14.x
jenkins-metadata
bitbucket_metadata
karthik/enforced_provisioners_poc
tanmay-hc-patch-1
karthik/fix/at/datasource/http
testbackport
backport/bump-backport/reliably-awake-polliwog
stable-website
backport/karthik/prep_version_1.14.3/correctly-saved-goldfish
karthik/prep_version_1.14.3
karthik/release_1.14.2
karthik/update/changelog_v1.14.2
karthik/version_prep_1.14.2
karthik/dependency/upgrade/packer-plugin-sdk
karthik/fix/powershell
leah/feat/upgrade-node
fix_cert_docs
karthik/fix/aceeptance_test.yml
anshul/bump_dev_version
anshul/docker_img_official_plugin
backport_proxy_fix
anshul/patch_release
anshul/fix_proxy_http
packer-plugin-release-notice
stable-website-backup
anshul/changelog_1.14.0
crt-doc-update
update_regarding_CRT_migration
anshul/plugin_binary_from_official_site
jenna/cherry-picked-docs-backports
workload-identity-auth-support
bump-go-git
log-fix
karthik/seperate_default_commands
fix_hcl2_dag_missing_dependency
temp-web
karthik/prepare_1.13.2_dev
release/1.13.x
karthik/backport_1.13.1
karthik/prepare_version_1.13.1
backport/doc_to_release/1.13.x
karthik/powershell_fix
backport/release_note-1.13.x
release_docs_1.13
dev_version_changes
karthik/docs_update_powershell
update-pr-template-pci
rel_version_change
fix_test_case
dependabot/github-actions-updates
update_version
backport-ryans-vsphere-change-to-website
winrm_firewall_port
hotfix/failing-acc-test
release/1.12.x
backport-nextjs
packer_fmt_multi_args
backport-bumps
bump-nextjs
tsccr-auto-pinning/trusted/2025-05-01
add_filebase64_function
karthik/powershell_encoding
doc_temp_exec
tsccr-auto-pinning/trusted/2025-04-01
packer_test_dump_commands
bump_x_net
docs/replace-dot-io-links
enabling_hcp_multibuilds
bump_version_main_packer_1.13.0-dev
bump_dependencies_vulns
bump_backport_assistant_0.5.3
prevent-name-conflicts-hcp
dependabot/go_modules/packer_test/common/plugin_tester/github.com/go-jose/go-jose/v4-4.0.5
poc-top-level-hcp-block
hcp-multiple-build-block
RK/adjust-codeowners
docs/manual-backport-packer-seo
docs/packer-seo-fy2025q4
docs/packer-seo-final-batch
docs/packer-seo-functions-batch3
docs/packer-seo-templates-batch1
docs/packer-seo-templates-batch2
docs/packer-seo-provs
docs/packer-seo-builders-plugins
docs/packer-seo-ds-ref
1-12-docs
tsccr-auto-pinning/trusted/2025-01-01
change_upload_sbom
make_doc_TMPDIR_clickable
docs_put_hcl2_example_in_first_tab
remove_aws_plugin_dep_on_hcl2_upgrade
test_add_compilation_queue_and_customisations
add-strcontains-docs
tsccr-auto-pinning/trusted/2024-12-01
fix_hcp_slug_empty_with_envvar_set
poc/with-api-imported
hand-off-lucas
tsccr-auto-pinning/trusted/2024-11-04
tsccr-auto-pinning/trusted/2024-11-01
release/1.11.x
backport/patch-1/vigorously-rested-sponge
backport/patch-1/blatantly-smashing-eel
backport/patch-1/centrally-credible-maggot
file_datasource
tsccr-auto-pinning/trusted/2024-10-01
backport/s3-community-provisioner/marginally-present-killdeer
backport/s3-community-provisioner/partially-dominant-mole
backport/fix_panic_on_empty_git_repo_hcp/cheaply-mature-sunfish
backport/build/bump-go-1.22.7/overly-caring-toad
tsccr-auto-pinning/trusted/2024-09-01
test_plugin_dir_spec_as_struct
backport/feature/add-base64gzip-function-support/forcibly-chief-toad
backport/docs_update_manual_installation/annually-subtle-mallard
backport/docs_update_manual_installation/ideally-feasible-kite
protobuf_testing
backport/artifact-manifest/main/simply-heroic-ladybird/brightly-real-sheepdog
backport/change-cicd-type/blatantly-resolved-gator
nywilken.enable-ci-for-feature-branch
protobuf-serialization
backport/feature/build-metadata-phase-2/entirely-up-ghoul
feature/build-metadata-phase-2
backport/replace_enumer_upstream/blindly-sacred-rat
backport/bump_go/nominally-leading-mastiff
tsccr-auto-pinning/trusted/2024-07-01
backport/nywilken.update-changelog-1.11.1/specially-clean-ewe
nywilken.update-changelog-1.11.1
backport/nywilken.CVE-2024-6104/largely-hot-pheasant
nywilken.CVE-2024-6104
backport/patch-1/completely-excited-colt
backport/patch-1/recently-innocent-dragon
backport/dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.99.0/annually-guided-mako
backport/hpr-1772-upsert-bucket-get-first/randomly-talented-sculpin
hpr-1772-upsert-bucket-get-first
backport/dependabot/go_modules/github.com/hashicorp/packer-plugin-sdk-0.5.4/visually-prompt-seahorse
backport/nywilken.document-tmpdir/naturally-sought-sailfish
backport/nywilken.document-tmpdir/officially-flowing-hedgehog
nywilken.document-tmpdir
backport/fix_locals_eval_order/hugely-welcome-rodent
backport/docs/string-templates/officially-on-garfish
backport/docs/string-templates/vastly-liked-whale
backport/docs/packer-init/heartily-large-cougar
backport/docs/packer-init/morally-full-bullfrog
backport/docs/update-ssh/amazingly-sound-stinkbug
backport/docs/update-ssh/miserably-light-flamingo
backport/doca/update-provisioners/externally-sought-skylark
backport/doca/update-provisioners/similarly-quality-crappie
backport/plugin_load_spec_docs/notably-correct-platypus
backport/acc_test_logic/wrongly-witty-moccasin
backport/fix_golangci_lint/lovely-giving-impala
fix_golangci_lint
backport/plugin_load_spec_docs/remotely-stirred-frog
backport/plugin_load_spec_docs/thankfully-square-monarch
plugin_load_spec_docs
tsccr-auto-pinning/trusted/2024-06-01
bump_main_minor_version
backport/docs/install-plugins-1.11-ga/radically-leading-muskrat
docs/install-plugins-1.11-ga
backport/patch-1/moderately-fair-cod
backport/patch-1/slowly-suitable-aphid
backport/patch-1/vastly-ace-kingfish
backport/bump-1.11-release-date/accurately-usable-goose
bump-1.11-release-date
cut_1.11.0
backport/script_prep_changelog_rm_wait/sharply-dashing-mayfly
script_prep_changelog_rm_wait
backport/bump_changelog_1.11.0/actively-central-condor
backport/refactor/remove_deprecated_ioutil_functions/gratefully-learning-elephant
release/1.11.0-beta
docs/update-init-command-HPR-1755
release/1.10.x
backport/patch-1/rarely-certain-narwhal
backport/patch-1/steadily-pumped-lark
register_components_once
backport/fix_doc_typo_hcp_version/generally-ethical-wahoo
backport/fix_doc_typo_hcp_version/purely-fast-tarpon
deps/bump-actions-checkout-version
concurrent-plugin-access
backport/add-docs-on-packer-fmt/humbly-humorous-shiner
backport/add-docs-on-packer-fmt/solely-creative-dassie
backport/nywilken/update-dockerfile-license/directly-liked-parrot
nywilken/update-dockerfile-license
poc_reversed_eval_order
poc_parallel_plugin_discovery
sdk_bump
backport/use_VERSION_as_source_of_truth/intensely-key-sparrow
backport/workflow_build_only_push_release_images/forcibly-willing-chow
backport/dep/bump_golang.org_x_net_v0.24.0/instantly-set-cat
use_VERSION_as_source_of_truth
dep/bump_golang.org_x_net_v0.24.0
alvin-huang/test-license
backport/sec/add-LICENSE-to-release-binaries/initially-able-ghost
sec/add-LICENSE-to-release-binaries
release/1.11.0-alpha2
plugins_remove_local_path_support
nywilken/ignore-prerelease-plugins_help_text
release/1.11.0-alpha
backport/main/reliably-polite-rhino
backport/update/integration-script-commands/apparently-strong-pug
backport/update/integration-script-commands/vertically-meet-coral
update/integration-script-commands
dev_version_show_build_time
deps/google.golang.org/protobuf-1.31.0
update/changelog-1.10.2
hardened_plugin_loading
protobuf_and_gob_support
terminology-doc-updates
bump/go-module-version
nywilken/remove-plugins-subnav
only_support_releases_plugins
fix/plugin-url-rewrite-errors
nywilken/plugin-install-docs
changelog-1.10.1
nywilken-cut-1.10.1
heat/bug.fix/update-website-dependencies
nywilken/hcp-packer-non-compliant-plugin-error
update/migrate_scaleway_and_mondoo_integration
rm_single_component_plugins
rm_upcloud_manifest
heat/pin-upcloud-plugin-version
bmm/upcloud-version-pin
heat/bug-fix/packer-plugin
release/1.9.x
reset_1.10.x
update/plugin-integration-docs
fix_flags_plugins_install
integration-docs
changelog/1.10.0
deps/bump_packer-plugin-sdk_with_gocty_fix
rm_source_on_var_arg_error
update/missing_builder_warning
dependabot/go_modules/github.com/hashicorp/hcp-sdk-go-0.74.0
update-releng-codeowners
update/hcp-sdk-go
update/bundled-plugins-cruft
update/CHANGELOG-pre-1.10.0-branch
update/prepare-changelog-for-backports
fix/CVE-2023-45283
REPLAT-962-Update-License-text
plugins_rm_err_if_none_found
nywilken/update-readme-busl-license
schedulers
prototype_plugin_override_arg
rm_flagsetflags_enum
backport_use_squash
parser_rework
datasource_logic_cleanup
add_path_attribute_to_required_plugins
docs/hashicorp-intergration-updates
log_used_plugins
nywilken/1.9.3-cleanup
backport_pr_12535
fix_release_1.9.x_license
dag_phase_1
nywilken-192-CHANGLELOG-updates
moss_bump_hcp_sdk_test
release/1.8.x
moss_test
doc_bundles
release/1.9.0-alpha
docs/amb.test-workflow
test-prepare
ks.update-generated-links
mktg-tf-3b0b4b19b15c85b7bb4266a386b186d0
nywilken/hcp_all_errors_at_once
release/1.7.x
dev-portal
hcp_null_builder
zs.draft-empty-page-check-script
azr/mini-dag
linode-hcp-ready
actions/fix-check-links
crt-onboarding-test
wilken/hcl2_upgrade-legacy-mode
wilken/implicitly-required-plugins-legacy-mode
wilken/packer-legacy-mode
brk.feat/mdx-v2
improved-error-handling-hcp-packer
validate_locals
update-alert-banner
update_sdk
vscode-customization
testing_hcp_rewrite_two
extract_outscale
azr_implicit_requried_plugin_2
config_docs
azr_acc_test_install_n_run_single_plugins
azr_remove_amazon_builder
use_progress_bar
pr/10199
poc/packer-init
d-powershell-generated-docs
f-inspect-regression
build-after-tests
b-azure_arm-cert-timeout
revert-6594-mode-check
mode-check
v1.7.10
v1.7.9
v1.7.8
v1.7.7
v1.7.6
v1.7.5
v1.7.4
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.6.6
v1.6.5
v1.6.4
v1.6.3
v1.6.2
v1.6.1
v1.6.0
v1.5.6
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.4.5
v1.4.4
v1.4.3
v1.4.2
v1.4.1
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v1.0.0-rc3
v1.0.0-rc1
v0.12.3
v0.12.2
v0.12.1
v0.12.0
v0.11.0
v0.10.1
v0.10.0
v0.9.0
v0.9.0-rc2
v0.8.6
v0.8.5
v0.8.3
v0.8.2
v0.8.1
1.5.0
list
nightly
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.10.2
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.3.0
v0.3.1
v0.3.10
v0.3.11
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.3.6
v0.3.7
v0.3.8
v0.3.9
v0.4.0
v0.4.1
v0.5.0
v0.5.1
v0.5.2
v0.6.0
v0.6.1
v0.7.0
v0.7.1
v0.7.2
v0.7.5
v0.8.0
v1.0.0-rc2
v1.10.0
v1.10.1
v1.10.2
v1.10.3
v1.11.0
v1.11.0-alpha
v1.11.0-alpha2
v1.11.0-beta
v1.11.1
v1.11.2
v1.12.0
v1.12.0-alpha1
v1.13.0
v1.13.1
v1.14.0
v1.14.1
v1.14.2
v1.14.3
v1.15.0
v1.3.5
v1.4.0
v1.8.0
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.8.5
v1.8.6
v1.8.7
v1.9.0
v1.9.0-alpha
v1.9.1
v1.9.2
v1.9.3
v1.9.4
v1.9.5
${ noResults }
16 Commits (d00a41c6aeb49df2871dbf75f4b0604c1e9197ea)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
dd525fb814
|
Update HCP Packer build labels when re-running Packer on an incomplete build (#11584)
* Update HCP Packer build labels argument Previously when running a partial build on multi-cloud build template it was found that build labels were only being applied at the creation for the partially executed build. Leaving all other completed builds with no HCP Packer build labels. This updates how incomplete builds are loaded from the registry and ensure that any defined hcp_packer_registry.build_labels are assigned to the build before starting an actual Packer build. Related to: #11573 * Add test case for overwriting build labels * Update tests to call CreateInitialBuild for non-existing builds * Rename test case to TestBucket_PopulateIteration * Fix data race in PopulateIteration against mock service Before Change ``` WARNING: DATA RACE Write at 0x00c0005421b0 by goroutine 47: github.com/hashicorp/packer/internal/registry.(*MockPackerClientService).PackerServiceCreateBuild() /Users/scrubbed/Development/packer/internal/registry/mock_service.go:173 +0x2b6 github.com/hashicorp/packer/internal/registry.(*Client).CreateBuild() /Users/scrubbed/Development/packer/internal/registry/service.go:169 +0x592 github.com/hashicorp/packer/internal/registry.(*Bucket).CreateInitialBuildForIteration() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:107 +0x204 github.com/hashicorp/packer/internal/registry.(*Bucket).PopulateIteration.func1() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:368 +0x14e github.com/hashicorp/packer/internal/registry.(*Bucket).PopulateIteration·dwrap·1() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:376 +0x58 Previous write at 0x00c0005421b0 by goroutine 46: github.com/hashicorp/packer/internal/registry.(*MockPackerClientService).PackerServiceCreateBuild() /Users/scrubbed/Development/packer/internal/registry/mock_service.go:173 +0x2b6 github.com/hashicorp/packer/internal/registry.(*Client).CreateBuild() /Users/scrubbed/Development/packer/internal/registry/service.go:169 +0x592 github.com/hashicorp/packer/internal/registry.(*Bucket).CreateInitialBuildForIteration() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:107 +0x204 github.com/hashicorp/packer/internal/registry.(*Bucket).PopulateIteration.func1() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:368 +0x14e github.com/hashicorp/packer/internal/registry.(*Bucket).PopulateIteration·dwrap·1() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:376 +0x58 Goroutine 47 (running) created at: github.com/hashicorp/packer/internal/registry.(*Bucket).PopulateIteration() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:362 +0x5c7 github.com/hashicorp/packer/internal/registry.TestBucket_UpdateLabelsForBuild_withMultipleBuilds() /Users/scrubbed/Development/packer/internal/registry/types.bucket_test.go:179 +0xf7 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 Goroutine 46 (finished) created at: github.com/hashicorp/packer/internal/registry.(*Bucket).PopulateIteration() /Users/scrubbed/Development/packer/internal/registry/types.bucket.go:362 +0x5c7 github.com/hashicorp/packer/internal/registry.TestBucket_UpdateLabelsForBuild_withMultipleBuilds() /Users/scrubbed/Development/packer/internal/registry/types.bucket_test.go:179 +0xf7 testing.tRunner() /usr/local/go/src/testing/testing.go:1259 +0x22f testing.(*T).Run·dwrap·21() /usr/local/go/src/testing/testing.go:1306 +0x47 ================== ``` * Add methods for managing builds on an Iteration * Update Mock Service to be a bit more concurrent It is a simple set of changes to make it work for the current testing use cases. If we need to we can move the Called fields to counters or re-architect the mock. This change also fixes a race condition when appending to the Slice of errs when calling PopulateIteration. * Update test case descriptions * Apply suggestions from code review Only append to errs if err is not nil Co-authored-by: Sylvia Moss <moss@hashicorp.com> * Fix linting issues Co-authored-by: Sylvia Moss <moss@hashicorp.com> |
4 years ago |
|
|
119a825296
|
Update CreateIntialBuildForIteration to initialize each build its own map (#11574)
* Rename mock bucket test file * Add failing tests for reproducing #11573 ``` === RUN TestBucket_CreateInitialBuildForIteration 2022/02/16 16:22:21 [TRACE] creating initial build for component happycloud.image --- PASS: TestBucket_CreateInitialBuildForIteration (0.00s) === RUN TestBucket_UpdateLabelsForBuild 2022/02/16 16:22:21 [TRACE] creating initial build for component happycloud.image types.bucket_test.go:87: expected the initial build to have an additional build label but thee is no diff: "" --- FAIL: TestBucket_UpdateLabelsForBuild (0.00s) === RUN TestBucket_UpdateLabelsForBuild_withMultipleBuilds 2022/02/16 16:22:21 [TRACE] creating initial build for component happycloud.image 2022/02/16 16:22:21 [TRACE] creating initial build for component happycloud.image2 types.bucket_test.go:125: Comparing component build labels: map[based_off:alpine source_image:another-happycloud-image version:1.7.0] against global build labels: map[based_off:alpine source_image:another-happycloud-image version:1.7.0] types.bucket_test.go:128: expected the initial build to have an additional build label but they are equal types.bucket_test.go:125: Comparing component build labels: map[based_off:alpine source_image:another-happycloud-image version:1.7.0] against global build labels: map[based_off:alpine source_image:another-happycloud-image version:1.7.0] types.bucket_test.go:128: expected the initial build to have an additional build label but they are equal --- FAIL: TestBucket_UpdateLabelsForBuild_withMultipleBuilds (0.00s) FAIL FAIL github.com/hashicorp/packer/internal/registry 0.646s ``` * Update CreateIntialBuildForIteration to initialize each build with a new map Previously upon creating the initial build the same map, which was initialized for the build_labels argument was being shared across all build images. This was causing an issue with labels being backed by the same map for all builds. This change ensures that all builds get their own map with any global build labels copied over during the initial creation. Closes #11573 Passing tests with changes on branch ``` RUN TestBucket_CreateInitialBuildForIteration 2022/02/16 16:37:40 [TRACE] creating initial build for component happycloud.image --- PASS: TestBucket_CreateInitialBuildForIteration (0.00s) === RUN TestBucket_UpdateLabelsForBuild 2022/02/16 16:37:40 [TRACE] creating initial build for component happycloud.image --- PASS: TestBucket_UpdateLabelsForBuild (0.00s) === RUN TestBucket_UpdateLabelsForBuild_withMultipleBuilds 2022/02/16 16:37:40 [TRACE] creating initial build for component happycloud.image 2022/02/16 16:37:40 [TRACE] creating initial build for component happycloud.image2 types.bucket_test.go:125: Comparing component build labels: map[based_off:alpine source_image:another-happycloud-image version:1.7.0] against global build labels: map[based_off:alpine version:1.7.0] types.bucket_test.go:125: Comparing component build labels: map[based_off:alpine source_image:the-original-happycloud-image version:1.7.0] against global build labels: map[based_off:alpine version:1.7.0] --- PASS: TestBucket_UpdateLabelsForBuild_withMultipleBuilds (0.00s) ``` * Handle errors from bucket methods * Update test cases Initialize maps for bucket when calling NewBucketWithIteration |
4 years ago |
|
|
45beb94442
|
Update test client to use Org/Project ID from client; not environment variables (#11502)
On a local developer machine there is a good chance the HCP_ORG_ID and
HCP_PROJECT_ID are not set since the HCP Packer client can derive this
information using the token/secret. This change initializes the location
structure with the information obtained from the client and not the
envs.
Results of tests before change with no HCP_ORG_ID or HCP_PROJECT_ID set
```
par_test.go:185: (*packer_service.PackerServiceGetIterationOK)(nil)
par_test.go:185: &{0 [] } (*models.GrpcGatewayRuntimeError) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface
--- FAIL: TestAcc_PAR_pkr_build (3.94s)
FAIL
FAIL github.com/hashicorp/packer/internal/registry/acctest 6.446s
testing: warning: no tests to run
PASS
ok github.com/hashicorp/packer/internal/registry/env 0.318s [no tests to run]
FAIL
```
Results of tests after change with no HCP_ORG_ID or HCP_PROJECT_ID set
```
2022/01/18 12:23:48 ui: --> null.example: Published metadata to HCP Packer registry packer/pkr-acctest-temp-2/iterations/01FSQ3EPPY69PMXJSTTFYDPQ5R
--- PASS: TestAcc_PAR_pkr_build (3.20s)
PASS
ok github.com/hashicorp/packer/internal/registry/acctest 5.121s
testing: warning: no tests to run
PASS
ok github.com/hashicorp/packer/internal/registry/env 0.155s [no tests to run]
```
|
4 years ago |
|
|
9ffd7ce938
|
Fail for revoked iterations (#11492)
* Fail for revoked iterations * check if iteration is revoked on GetIteration * fix fmt |
4 years ago |
|
|
ef41e7506e
|
add packer user agent to HCP client (#11455)
|
4 years ago |
|
|
3278c1a817
|
Packer SVC acc tests (#11274)
|
4 years ago |
|
|
06b35c39de
|
hcp packer registry build labels (#11401)
* Add basic support for build_labels argument
* Update support for build_labels configuration argument
* Update complete test-fixture with a build_labels configuration
* Add test for deprecated labels argument
* Add deprecation for hcp_packer_registry.labels
When using the now deprecated labels argument of the new bucket_labels a
Warning will be presented to the user.
```
~> HCP_PACKER_BUILD_FINGERPRINT=356786543567865456789656789 packer
build source.pkr.hcl
Warning: the argument hcp_packer_registry.labels has been deprecated and will be removed in a future release; please use hcp_packer_registry.bucket_labels
```
When trying to use both bucket_labels and labels together an error is
presented to the user.
```
~> HCP_PACKER_BUILD_FINGERPRINT=ss6786543567865456789656789 packer
build source.pkr.hcl
Error: hcp_packer_registry.labels and hcp_packer_registry.bucket_labels are mutely exclusive; please use the recommended argument hcp_packer_registry.bucket_labels
on source.pkr.hcl line 17:
(source code not available)
```
* Update documentation for build_labels
* Apply suggestions from code review
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
* Update hcl2template/types.build.hcp_packer_registry.go
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
|
4 years ago |
|
|
b763b79d9f |
implement contextual variable packer.iteration_id
|
4 years ago |
|
|
5d1f8e1424 |
fix mocks
|
5 years ago |
|
|
a28a865ce5 |
add ID
|
5 years ago |
|
|
3c5c61cd2a |
add source image id to build from PARtifact
|
5 years ago |
|
|
06fb597185 |
import new sdk and fix compatability issues
|
5 years ago |
|
|
b10df3abb7
|
Update HCP Packer registry image extraction, validation, publishing logic for registry capable plugins (#11221)
* Update handling of registry artifacts This change uses the github.com/hashicorp/packer-plgin-sdk/packer/registryimage for querying Artifact State for HCP Registry Image metadata. To handle the conversion of the RPC response, mapstructure was introduced to conversion state data into an registryimage.Image before publishing to a image bucket. * Update to use registry image from packersdk * Rename internal registry service pkg * Update vendored plugins to latest version * The latest release of Amazon, GoogleCompute, and Azure have support for publishing images to the HCP Packer registry. |
5 years ago |
|
|
fd80f8da8c |
Add two new data sources -- hcp-packer-iteration and hcp-packer-image. These data sources together will allow users to query hcp_packer for the image_ids they need to use as source images to their builds, with a simple UI and clear outputs.
add quick and dirty acceptance test for hcp packer image iteration and hcp packer image data sources PR review linting |
5 years ago |
|
|
980deeb684 |
Implement hcp packer data source. This is a rough copy of the terraform provider's data source, to make beta user experience consistent across both sources
|
5 years ago |
|
|
a534c743cf
|
HCP Packer registry enabled Packer client (#11154)
* Add working registry pkg * Add custom error for handling the loading of PAR environment variables * Working Publish to Build, with proper error handling for bucket names * Update hcp-sdk-go to use branch instead of mod replace directive * Update Packer build status configuration * Add support for HCP_PACKER_BUILD_FINGERPRINT env * Add support for publishing one or more PARtifacts from a single build * add git shas to this branch * Add ability to set provider name if available * Add working RegistryBuilder type * Add RegistryPostProcessor as wrapper post-processor * When in PAR mode a empty RegistryPostProcessor is added to the end of the post-processor list to publish all final image data. * Add support for updating a build from PAR that is not in a DONE state * Fix a small issue with creation the initial builds for an empty iteration. * Add PAR URL to post-processor display * Implement hcp_packer_registry block (#11168) * Update vendored Amazon plugin to v1.0.1-dev * Fix panic when running a Packer registry build in a clean directory * Remove the publishing of post-processor metadata from the registry post-processor. * Remove metadata add from registry_builder * Update registry builder to skip a build that was found to be DONE Co-authored-by: Megan Marsh <megan@hashicorp.com> Co-authored-by: Sylvia Moss <moss@hashicorp.com> |
5 years ago |