Clone the git repo instead of using ADD.
Some checks failed
foreign-document-test Build foreign-document-test has failed
Some checks failed
foreign-document-test Build foreign-document-test has failed
Using ADD breaks the caching.
This commit is contained in:
@@ -19,7 +19,15 @@ RUN apk add --no-cache build-base musl-dev git autoconf make texinfo gnutls-dev
|
|||||||
FROM build AS build-emacs
|
FROM build AS build-emacs
|
||||||
ARG EMACS_REPO
|
ARG EMACS_REPO
|
||||||
ARG EMACS_VERSION
|
ARG EMACS_VERSION
|
||||||
ADD "$EMACS_REPO#$EMACS_VERSION" /root/emacs
|
|
||||||
|
RUN <<EOF
|
||||||
|
mkdir -p /root/emacs
|
||||||
|
git -C /root/emacs init --initial-branch=main
|
||||||
|
git -C /root/emacs remote add origin $EMACS_REPO
|
||||||
|
git -C /root/emacs fetch origin $EMACS_VERSION
|
||||||
|
git -C /root/emacs checkout FETCH_HEAD
|
||||||
|
EOF
|
||||||
|
#ADD "$EMACS_REPO#$EMACS_VERSION" /root/emacs
|
||||||
WORKDIR /root/emacs
|
WORKDIR /root/emacs
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
mkdir /root/dist
|
mkdir /root/dist
|
||||||
|
|||||||
Reference in New Issue
Block a user