Skip to content

Commit

Permalink
⭐Add a prod build make job. (#8)
Browse files Browse the repository at this point in the history
* ⭐Add a prod build make job.

Signed-off-by: Preslav <[email protected]>

* 🧹 Remove build/prod from Makefile. Fix ldflags in .gorelease.yml

Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev authored Jun 17, 2022
1 parent af68414 commit db076f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
- amd64
- arm64
ldflags:
- -s -w -X version.Version={{.Version}} -X version.Build={{.ShortCommit}} -X version.Date={{.Date}}
- -s -w -X go.mondoo.com/packer-plugin-mondoo/version.Version={{.Version}} -X go.mondoo.com/packer-plugin-mondoo/version.Build={{.ShortCommit}} -X go.mondoo.com/packer-plugin-mondoo/version.Date={{.Date}}
archives:
- id: releases
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
Expand Down
2 changes: 1 addition & 1 deletion provisioner/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
}

func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.Communicator, generatedData map[string]interface{}) error {
ui.Say("Running mondoo (Version: " + version.Version + ", Build: " + version.Build + ")")
ui.Say("Running Mondoo packer provisioner (Version: " + version.Version + ", Build: " + version.Build + ")")

err := mapstructure.Decode(generatedData, &p.buildInfo)
if err != nil {
Expand Down

0 comments on commit db076f5

Please sign in to comment.