summaryrefslogtreecommitdiff
path: root/workflow_sources/test/helpers.star
blob: 4db571163b3a7f6d4b54c261c7571f0da5965c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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