mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-22 01:50:40 +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()
|
||||
sha = compile.Flag("git-sha", "git commit sha").String()
|
||||
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()
|
||||
deploy = compile.Flag("deploy-to", "target deployment").PlaceHolder("production").String()
|
||||
secrets = compile.Flag("secret", "secret variable").StringMap()
|
||||
@ -256,6 +257,7 @@ func runCompile() error {
|
||||
comp.SkipFunc = compiler.SkipFunc(
|
||||
compiler.SkipData{
|
||||
Branch: *branch,
|
||||
Cron: *cron,
|
||||
Event: *event,
|
||||
Instance: *instance,
|
||||
Ref: *ref,
|
||||
|
@ -261,7 +261,7 @@ func toPullPolicy(pull bool) string {
|
||||
case true:
|
||||
return "always"
|
||||
default:
|
||||
return "default"
|
||||
return "if-not-exists"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user