use if-not-exists as default image pull setting for 0.8 conversion

This commit is contained in:
Brad Rydzewski 2019-07-16 07:53:17 -07:00
parent 4889634ea9
commit 1dc1303f9c
2 changed files with 3 additions and 1 deletions

View File

@ -193,6 +193,7 @@ var (
ref = compile.Flag("git-ref", "git commit ref").PlaceHolder("refs/heads/master").String() ref = compile.Flag("git-ref", "git commit ref").PlaceHolder("refs/heads/master").String()
sha = compile.Flag("git-sha", "git commit sha").String() sha = compile.Flag("git-sha", "git commit sha").String()
creds = compile.Flag("git-creds", "git credentials").URLList() creds = compile.Flag("git-creds", "git credentials").URLList()
cron = compile.Flag("cron", "cron job name").String()
instance = compile.Flag("instance", "drone instance hostname").PlaceHolder("drone.company.com").String() instance = compile.Flag("instance", "drone instance hostname").PlaceHolder("drone.company.com").String()
deploy = compile.Flag("deploy-to", "target deployment").PlaceHolder("production").String() deploy = compile.Flag("deploy-to", "target deployment").PlaceHolder("production").String()
secrets = compile.Flag("secret", "secret variable").StringMap() secrets = compile.Flag("secret", "secret variable").StringMap()
@ -256,6 +257,7 @@ func runCompile() error {
comp.SkipFunc = compiler.SkipFunc( comp.SkipFunc = compiler.SkipFunc(
compiler.SkipData{ compiler.SkipData{
Branch: *branch, Branch: *branch,
Cron: *cron,
Event: *event, Event: *event,
Instance: *instance, Instance: *instance,
Ref: *ref, Ref: *ref,

View File

@ -261,7 +261,7 @@ func toPullPolicy(pull bool) string {
case true: case true:
return "always" return "always"
default: default:
return "default" return "if-not-exists"
} }
} }