Skip to content

Commit 44e1e21

Browse files
committed
Move COPY galaxy code so that api can be cached
But before cloning the playbook so we always get the latest changes.
1 parent bf302e2 commit 44e1e21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.k8s_ci.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ ARG SERVER_DIR
3232
ARG GALAXY_PLAYBOOK_REPO
3333
ARG GALAXY_PLAYBOOK_BRANCH
3434

35-
# Add Galaxy source code
36-
COPY . $SERVER_DIR/
37-
3835
# Init Env
3936
ENV LC_ALL=en_US.UTF-8
4037
ENV LANG=en_US.UTF-8
@@ -57,6 +54,9 @@ RUN set -xe; \
5754
WORKDIR /tmp/ansible
5855
RUN rm -rf *
5956

57+
# Add Galaxy source code
58+
COPY . $SERVER_DIR/
59+
6060
RUN git clone --depth 1 --branch $GALAXY_PLAYBOOK_BRANCH $GALAXY_PLAYBOOK_REPO galaxy-docker
6161
WORKDIR /tmp/ansible/galaxy-docker
6262
RUN ansible-galaxy install -r requirements.yml -p roles --force-with-deps

0 commit comments

Comments
 (0)