Deploy objects with force_normal_tags should only apply

This commit is contained in:
Mustafa Gezen 2022-11-07 14:03:24 +01:00
parent 37a958bad0
commit 0eaaf4dbfe
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
2 changed files with 9 additions and 10 deletions

View File

@ -1,6 +0,0 @@
{
define_project(path)::
{
bazel_path: path
}
}

View File

@ -121,12 +121,17 @@ def peridot_k8s(name, src, tags = [], outs = [], static = False, prod_only = Fal
commands = dependent_push + [":%s_container" % name],
tags = ["manual"],
)
push_apply_commands = [
":%s.push" % name,
":%s.apply" % name,
]
if force_normal_tags:
push_apply_commands = [
":%s.apply" % name,
]
multirun(
name = "%s.push_apply" % name,
commands = [
":%s.push" % name,
":%s.apply" % name,
],
commands = push_apply_commands,
tags = ["manual", "push_apply"],
)