From 2059b73584126aa2570016b00f7ecc9329adf1df Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 11 Jan 2019 13:23:49 -0800 Subject: [PATCH] Fix image promote playbook This job has no nodes; the playbook needs to run on localhost. The only tasks use the uri module without local files, so should be safe. Change-Id: Ic012426a66be3b85efe9af35089addf1316dfa63 --- docker/gitea/Dockerfile | 2 +- docker/jinja-init/Dockerfile | 2 +- playbooks/zuul/build-image/promote.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index 4a48bedec6..d2299ba813 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -112,4 +112,4 @@ EXPOSE 22 VOLUME ["/data"] ENTRYPOINT ["/usr/bin/entrypoint"] CMD ["/usr/sbin/sshd", "-D"] -# this comment is here to perform a test run of the job.. +# this comment is here to perform a test run of the job... \ No newline at end of file diff --git a/docker/jinja-init/Dockerfile b/docker/jinja-init/Dockerfile index a06587e262..61a4d7ec64 100644 --- a/docker/jinja-init/Dockerfile +++ b/docker/jinja-init/Dockerfile @@ -32,4 +32,4 @@ RUN pip install jinja2 COPY --from=build /src/jinja-init/run.py / ENTRYPOINT ["python", "/run.py"] -# this comment is here to perform a test run of the job. +# this comment is here to perform a test run of the job... \ No newline at end of file diff --git a/playbooks/zuul/build-image/promote.yaml b/playbooks/zuul/build-image/promote.yaml index 6bfdd3ad79..04858ab27d 100644 --- a/playbooks/zuul/build-image/promote.yaml +++ b/playbooks/zuul/build-image/promote.yaml @@ -1,4 +1,4 @@ -- hosts: all +- hosts: localhost tasks: - name: Promote dockerhub image when: credentials is defined