aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/playbooks/publish.yml4
-rw-r--r--tests/templates/kolla-build.conf.j25
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/playbooks/publish.yml b/tests/playbooks/publish.yml
index 9a019fac9..a72dffc79 100644
--- a/tests/playbooks/publish.yml
+++ b/tests/playbooks/publish.yml
@@ -4,5 +4,9 @@
- name: Login to Dockerhub
command: "docker login -u {{ kolla_dockerhub_creds.user }} -p {{ kolla_dockerhub_creds.password }}"
no_log: true
+ when:
+ - publisher
- shell: "for img in $(docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep kolla ); do docker push $img; done"
+ when:
+ - publisher
diff --git a/tests/templates/kolla-build.conf.j2 b/tests/templates/kolla-build.conf.j2
index 3b1ea1051..13e857178 100644
--- a/tests/templates/kolla-build.conf.j2
+++ b/tests/templates/kolla-build.conf.j2
@@ -1,11 +1,8 @@
[DEFAULT]
debug = true
{% if publisher %}
-profile = default
-profile = infra
-profile = main
namespace = kolla
-tag = queens
+tag = {{ zuul.branch | basename }}
{% endif %}
push = false
logs_dir = /tmp/logs/build