Skip to content

Commit

Permalink
Use longer version for imagestream
Browse files Browse the repository at this point in the history
Older version of origin-clients does not work with
short version (oc get is)
  • Loading branch information
Lukas Slebodnik committed May 23, 2018
1 parent 8065c9a commit d59e24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/roles/os_temps/tasks/setup_os_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@

# Setup tag if container image build successful
- name: Modify tags on images
shell: "{{ oc_bin }} get is | awk '{print $2}' | grep -v DOCKER | sed 's/.*5000\\///g' | grep '{{ build_config_name_file.stdout }}' | xargs -i {{ oc_bin }} tag {}:latest {}:{{ tag }}"
when: modify_tags|bool == true and build_success|bool == true
shell: "{{ oc_bin }} get imagestream | awk '{print $2}' | grep -v DOCKER | sed 's/.*5000\\///g' | grep '{{ build_config_name_file.stdout }}' | xargs -i {{ oc_bin }} tag {}:latest {}:{{ tag }}"
when: modify_tags|bool == true and build_success|bool == true

0 comments on commit d59e24e

Please sign in to comment.