Skip to content

Commit d166e63

Browse files
committed
Remove changes to image squashing
1 parent bd0be22 commit d166e63

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • ansible/roles/squash_image/tasks
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
---
2-
- name: squash newly created image
3-
become: true
4-
ignore_errors: true # Might already be squashed
5-
shell: docker-squash "{{ unsquahed_image_id.stdout_lines[0] }}" -t "{{ container_image }}:{{ container_tag }}"
6-
72
- name: get image id for newly created image
83
become: true
9-
shell: docker images -a | grep "{{ container_image }}" | grep "{{ container_tag }}" | awk '{print $3}'
4+
shell: docker images -a | grep "{{ container_image }}" --color=never | awk '{print $3}'
105
register: unsquahed_image_id
116

127
- name: squash newly created image
138
become: true
149
ignore_errors: true # Might already be squashed
15-
shell: docker-squash "{{ unsquahed_image_id.stdout_lines[0] }}" -t "{{ container_image }}:{{ container_tag }}"
10+
shell: docker-squash "{{ unsquahed_image_id.stdout }}" -t "{{ container_image }}:{{ container_tag }}"

0 commit comments

Comments
 (0)