(zuul) Fix Deckhand post jobs
Change-Id: I63c7814ca7a6f7013c194038d14a4721373e9717
This commit is contained in:
parent
d7d3cbde2b
commit
28b2bd0a14
@ -28,7 +28,7 @@
|
|||||||
msg: "{{ tags | to_json }}"
|
msg: "{{ tags | to_json }}"
|
||||||
|
|
||||||
- name: Determine tags
|
- name: Determine tags
|
||||||
shell: echo '{{ tags | to_json }}' | python {{ zuul.project.src_dir }}/tools/image_tags.py
|
shell: echo '{{ tags | to_json }}' | python3 {{ zuul.project.src_dir }}/tools/image_tags.py
|
||||||
environment:
|
environment:
|
||||||
BRANCH: "{{ zuul.branch | default('') }}"
|
BRANCH: "{{ zuul.branch | default('') }}"
|
||||||
CHANGE: "{{ zuul.change | default('') }}"
|
CHANGE: "{{ zuul.change | default('') }}"
|
||||||
@ -54,7 +54,7 @@
|
|||||||
- pip:
|
- pip:
|
||||||
name: docker
|
name: docker
|
||||||
version: 2.7.0
|
version: 2.7.0
|
||||||
executable: pip
|
executable: pip3
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
- name: Make images
|
- name: Make images
|
||||||
@ -78,6 +78,9 @@
|
|||||||
|
|
||||||
- name: Publish images
|
- name: Publish images
|
||||||
block:
|
block:
|
||||||
|
- pip:
|
||||||
|
name: requests
|
||||||
|
executable: pip3
|
||||||
- docker_login:
|
- docker_login:
|
||||||
username: "{{ airship_deckhand_quay_creds.username }}"
|
username: "{{ airship_deckhand_quay_creds.username }}"
|
||||||
password: "{{ airship_deckhand_quay_creds.password }}"
|
password: "{{ airship_deckhand_quay_creds.password }}"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
vars:
|
vars:
|
||||||
latest_tag: latest
|
latest_tag: latest
|
||||||
distro: "{{ distro | default ('') }}"
|
Distro: "{{ distro | default ('') }}"
|
||||||
org: airshipit
|
org: airshipit
|
||||||
image: deckhand
|
image: deckhand
|
||||||
new_tag: "{{ zuul.newrev | default('') }}"
|
new_tag: "{{ zuul.newrev | default('') }}"
|
||||||
@ -30,7 +30,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: Get id of the distro specific container image currently tagged as latest
|
- name: Get id of the distro specific container image currently tagged as latest
|
||||||
uri:
|
uri:
|
||||||
url: "{{ quay_repo_api_url }}/{{ org }}/{{ image }}/tag/?specificTag={{ latest_tag }}-{{ distro }}&limit=1"
|
url: "{{ quay_repo_api_url }}/{{ org }}/{{ image }}/tag/?specificTag={{ latest_tag }}-{{ Distro }}&limit=1"
|
||||||
return_content: yes
|
return_content: yes
|
||||||
register: response_1
|
register: response_1
|
||||||
- name: Debug response
|
- name: Debug response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user