Skip to content

Commit

Permalink
Merge pull request #473 from dgageot/fix-472
Browse files Browse the repository at this point in the history
Fix Git Tagger name
  • Loading branch information
r2d4 authored Apr 30, 2018
2 parents d30c921 + bccfee0 commit 026d11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/skaffold/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ kind: Config
apiVersion: skaffold/v1alpha2
kind: Config
build:
tagPolicy:
gitCommit: {}
artifacts:
- imageName: example
deploy:
Expand Down Expand Up @@ -96,7 +98,7 @@ func TestParseConfig(t *testing.T) {
dev: true,
expected: config(
withLocalBuild(
withTagPolicy(v1alpha2.TagPolicy{ShaTagger: &v1alpha2.ShaTagger{}}),
withTagPolicy(v1alpha2.TagPolicy{GitTagger: &v1alpha2.GitTagger{}}),
withDockerArtifact("example", ".", "Dockerfile"),
),
withDeploy("example"),
Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/schema/v1alpha2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type BuildConfig struct {

// TagPolicy contains all the configuration for the tagging step
type TagPolicy struct {
GitTagger *GitTagger `yaml:"git"`
GitTagger *GitTagger `yaml:"gitCommit"`
ShaTagger *ShaTagger `yaml:"sha256"`
EnvTemplateTagger *EnvTemplateTagger `yaml:"envTemplate"`
}
Expand Down

0 comments on commit 026d11b

Please sign in to comment.