Merge "zuul: fix dockerhub post job syntax"

This commit is contained in:
Zuul 2020-05-01 00:12:21 +00:00 committed by Gerrit Code Review
commit 17964427ba
1 changed files with 8 additions and 4 deletions

View File

@ -30,17 +30,21 @@
tag: source-latest
tasks:
- name: Tag images with buildah
command: buildah tag {{ item.name }}:{{ item:tag }} {{ destination }}:{{ item:tag }}
command: |
buildah tag {{ item.name }}:{{ item:tag }} {{ destination }}:{{ item:tag }}
loop: "{{ images }}"
- name: Tag latest from source-latest
command: buildah tag {{ destination }}:source-latest {{ destination }}:latest
command: |
buildah tag {{ destination }}:source-latest {{ destination }}:latest
- name: Push latest
command: buildah push --creds {{ ara_dockerhub_credentials.username }}:{{ ara_dockerhub_credentials.password }} {{ destination }}:latest
command: |
buildah push --creds {{ ara_dockerhub_credentials.username }}:{{ ara_dockerhub_credentials.password }} {{ destination }}:latest
no_log: yes
- name: Push the remainder of the tags
command: buildah push --creds {{ ara_dockerhub_credentials.username }}:{{ ara_dockerhub_credentials.password }} {{ destination }}:{{ item.tag }}
command: |
buildah push --creds {{ ara_dockerhub_credentials.username }}:{{ ara_dockerhub_credentials.password }} {{ destination }}:{{ item.tag }}
no_log: yes
loop: "{{ images }}"