Skip to content

Commit

Permalink
Copy files from scenario when building images
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadej Borovšak committed May 13, 2021
1 parent 8690b73 commit 7cd45f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions molecule_docker/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
when: not item.pre_build_image | default(false)
register: platforms

- name: Copy files from scenario directory for image building
copy:
src: "{{ molecule_scenario_directory }}/"
dest: "{{ molecule_ephemeral_directory }}"
mode: "0600"
when: not item.pre_build_image | default(false)

- name: Discover local Docker images
docker_image_info:
name: "molecule_local/{{ item.item.name }}"
Expand Down

0 comments on commit 7cd45f2

Please sign in to comment.