summaryrefslogtreecommitdiff
path: root/workflow_sources/test/helpers.star
diff options
context:
space:
mode:
Diffstat (limited to 'workflow_sources/test/helpers.star')
-rw-r--r--workflow_sources/test/helpers.star17
1 files changed, 17 insertions, 0 deletions
diff --git a/workflow_sources/test/helpers.star b/workflow_sources/test/helpers.star
new file mode 100644
index 0000000000..4db571163b
--- /dev/null
+++ b/workflow_sources/test/helpers.star
@@ -0,0 +1,17 @@
+load("@ytt:data", "data")
+
+def ci_image_tag():
+ return "erlang-" + data.values.erlang_version + "-rabbitmq-${{ github.sha }}"
+end
+
+def ci_image():
+ return "eu.gcr.io/cf-rabbitmq-core/ci:" + ci_image_tag()
+end
+
+def ci_dep_image(dep_name):
+ return "eu.gcr.io/cf-rabbitmq-core/ci-" + dep_name + ":" + ci_image_tag()
+end
+
+def skip_ci_condition():
+ return "!contains(github.event.head_commit.message, '[ci skip]')"
+end