Skip to content

Commit

Permalink
fix(*): use commit SHA on master and tag name on tags (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored May 20, 2018
1 parent 65c2c32 commit 2bd7b89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ script:
cd ../generate && conform enforce
cd ../
{{ if or (and .Git.IsClean .Git.IsTag) (and .Git.IsClean (eq .Git.Branch "master")) }}
packer build -var 'version={{ .Docker.Image.Tag }}' packer.json
{{ if and .Git.IsClean .Git.IsTag }}
packer build -var 'version={{ .Git.Tag }}' packer.json
{{ else if and .Git.IsClean (eq .Git.Branch "master") }}
packer build -var 'version={{ .Git.SHA }}' packer.json
{{ end }}

0 comments on commit 2bd7b89

Please sign in to comment.