mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-01 01:00:41 +00:00
use if-not-exists as default image pull setting for 0.8 conversion
This commit is contained in:
parent
4889634ea9
commit
1dc1303f9c
2
main.go
2
main.go
@ -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,
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user