Merge "(zuul) Update docker publish to quay.io"

This commit is contained in:
Zuul 2018-06-08 21:37:03 +00:00 committed by Gerrit Code Review
commit c5ce9af805
2 changed files with 42 additions and 44 deletions

View File

@ -127,7 +127,7 @@
run: tools/zuul/playbooks/docker-image-build.yaml
nodeset: ubuntu-xenial
secrets:
- airship_dockerhub_creds
- airship_promenade_quay_creds
vars:
publish: true
tags:
@ -143,38 +143,27 @@
- ^tools/.*$
- secret:
name: airship_dockerhub_creds
name: airship_promenade_quay_creds
data:
username: !encrypted/pkcs1-oaep
- oY8olc1MvtkAHQ6nDELIX4Kih4fpwpjHhd6Mr5b/NgxX7+bhQVtr4SYNjmWpdiNzTCPfT
+OFSjqmMDzCusVO5ZjURU4gmsN3ip0YLUAT85CPcCfPxyuNH/r0/5HIg+35W7v+g7BUH0
CqUAM9Qw57O0cfsa+88v6Hz05nmz6e71YjItwOwhyjJ9QXHtSVJ/cAMelWfmFuohRwQ0w
9RikqAa+882Qrnl8mm/MUI2W8vi07EY78sjo5mp4AWDK04TuOpMv4Pa2yoJ42pLyiqy9Z
/ofnA1EgNf22d5iUUZQMXQDsST89vuTNbM/V2Frk2nlJjjSwhlLypdhCDzE0UBzDnWOGH
WRZzha51hIjhwOr0mAzw3J/I0LVCovrbut+RvOX5UnK9x4BKIv8b4JFhUgPgaaRtk5IeR
CwjWg7JARt+N01rXDR6K58QsmpmYG3oUvUhS1HtUYq9cXpgtz7H2oVb26hdLBEaxC1+8e
LEul+wkZ6nCXs0h9FlfbvA1/aYl1Qhezw9JUIoThTkWxhahXZVBnFQM0LlJBZjNAjDvQi
4NgVWXAFcmimNZbgDgI7LPEozyqYvqGq9s6vq1YgiwPfnddlegLWX/TN3cE1glE4rase8
Bmc6rPW+hb+5abTS64LoFqz6cQW7AG6hveq8vwTfdS53er0u135/R2VDjXUkSA=
- rZUvxa5mOBb4fmFmoYCcT67hrkI7oqrmuTb3eFzgB7LOJbiZN9/3JSnbBmgG9qeaa8kog
ttxjwgu0+YdpKjSk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d9EJ3hcoSYbcsvenpoq99paehOIYBuUHkq5jR
HwolBcGAZjUavdTrDIGyDr/2nbUsfkXmAVlqYSH6Fb/H25IXn6G1ksntDm0Q2OSvtoj99
xR9HXfpSsBWk17Cw+MJwDKsp6DZApo3Dr0todp6nOuj7l+heG8IntugxtgL5RD2NQCAZk
KYRUjqjLpEjGFIR394ndUlLf3E4H4v+uK9lKca3tCDCMSJfRd7SUXLWhauWVHIPAvy3oR
V20u7BrripCXuBEgg6FkMuwnkE+U9TlxaRhtoM1zZdNSMvXNyC/EDFI+HkYho+NHaj1ge
o0oGHiqJlKMQfhNY5HpZqTPHKUmqKWShhvF7eyKYu3ynOmPyqO6SL8q/Yp7cRtm4B1s+U
phFn3dA1xr/cNRWeEDDQvWnC2cJ5obtsDG5Fk6QqJXKtEsLguqys5B3/4ortFTxboN5Wg
B8LXgIGR6nvi3c+UgWR1REVXIencbYUX2zAmr449NZ2kEys4WZ51EAX0u9C6uCPnwKU/T
cnoFa9ZcVtbUzddA4j8SfRdIPUH0FmUMHAiXdcfCYhJwbRzzKC9m8C84Emf6Io=

View File

@ -39,19 +39,28 @@
- name: Docker login
docker_login:
email: "{{ airship_dockerhub_creds.email }}"
password: "{{ airship_dockerhub_creds.password }}"
username: "{{ airship_dockerhub_creds.username }}"
password: "{{ airship_promenade_quay_creds.password }}"
username: "{{ airship_promenade_quay_creds.username }}"
registry_url: "https://quay.io/api/v1/"
become: True
when: publish
- name: Build (and push) images
docker_image:
name: airshipit/promenade
dockerfile: "Dockerfile"
path: "{{ zuul.project.src_dir }}"
pull: false
push: "{{ publish }}"
tag: "{{ item }}"
with_items: "{{ image_tags.stdout_lines }}"
block:
- docker_image:
name: "quay.io/airshipit/promenade"
dockerfile: "Dockerfile"
path: "{{ zuul.project.src_dir }}"
pull: false
push: "{{ publish }}"
tag: "{{ item }}"
with_items: "{{ image_tags.stdout_lines }}"
- shell: "docker images"
register: docker_images
- debug:
var: docker_images
become: True