Skip to content

Commit 1de97e2

Browse files
author
Anandkumar Patel
committed
move repo to repo folder so we do not conflit when adding dockerfile
1 parent eed6f87 commit 1de97e2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ansible/roles/builder/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
sudo: yes
1111
git:
1212
repo="{{ repo }}"
13-
dest="{{ build_dir }}/{{ name }}"
13+
dest="{{ build_dir }}/{{ name }}/repo"
1414
version="{{ git_branch }}"
1515
update=yes
1616
accept_hostkey=True

ansible/roles/builder/templates/basic_node/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ RUN {{ command }}
2222
{% endif %}
2323

2424
# Add package.json from the current build context (`.` is the repo) first
25-
ADD ./package.json /{{ name }}/package.json
25+
ADD ./repo/package.json /{{ name }}/package.json
2626

2727
# install, should will skip if no package.json change
2828
WORKDIR /{{ name }}
2929
RUN npm install --production
3030

3131
# move the current build context (`.` is the repo) to /{{ name }}
32-
ADD . /{{ name }}
32+
ADD ./repo /{{ name }}
3333

3434
{% if dockerfile_post_install_commands is defined %}
3535
{% for command in dockerfile_post_install_commands %}

0 commit comments

Comments
 (0)