Recursively clone repo before applying patches, otherwise they might fail

This commit is contained in:
Daniel García 2021-02-20 16:41:57 +01:00
parent db013ca896
commit 9b68e33580
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ USER node
# Using https://github.com/bitwarden/web/releases/tag/v2.18.1 # Using https://github.com/bitwarden/web/releases/tag/v2.18.1
ARG VAULT_VERSION=9326a9a4a723d7e57943776d7b356132f40aeec2 ARG VAULT_VERSION=9326a9a4a723d7e57943776d7b356132f40aeec2
RUN git clone https://github.com/bitwarden/web.git /vault RUN git clone --recurse-submodules https://github.com/bitwarden/web.git /vault
WORKDIR /vault WORKDIR /vault
RUN git checkout "$VAULT_VERSION" RUN git checkout "$VAULT_VERSION"

View file

@ -22,7 +22,7 @@ mkdir -p "$OUTPUT_FOLDER"
# If this is the first time, clone the project # If this is the first time, clone the project
if [ ! -d "$VAULT_FOLDER" ]; then if [ ! -d "$VAULT_FOLDER" ]; then
git clone --recursive https://github.com/bitwarden/web.git "$VAULT_FOLDER" git clone --recurse-submodules https://github.com/bitwarden/web.git "$VAULT_FOLDER"
fi fi
cd $VAULT_FOLDER cd $VAULT_FOLDER