From ab88c85adb397cc43241d5cdfdb9bf02c79a9646 Mon Sep 17 00:00:00 2001 From: Fedor Nikolaev Date: Tue, 27 Aug 2024 02:30:31 +0400 Subject: [PATCH] haqq-v1.5.0 fix git-lfs --- dockerfile/cosmos/Dockerfile | 7 +++++-- dockerfile/cosmos/native.Dockerfile | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dockerfile/cosmos/Dockerfile b/dockerfile/cosmos/Dockerfile index 0885dbba..fcf4f0a9 100644 --- a/dockerfile/cosmos/Dockerfile +++ b/dockerfile/cosmos/Dockerfile @@ -1,7 +1,7 @@ ARG BASE_VERSION FROM --platform=$BUILDPLATFORM golang:${BASE_VERSION} AS build-env -RUN apk add --update --no-cache curl make git libc-dev bash gcc linux-headers eudev-dev +RUN apk add --update --no-cache curl make git libc-dev bash gcc linux-headers eudev-dev git-lfs ARG TARGETARCH ARG BUILDARCH @@ -32,7 +32,10 @@ ARG GITHUB_REPO ARG VERSION ARG BUILD_TIMESTAMP -RUN git clone -b ${VERSION} --single-branch https://${REPO_HOST}/${GITHUB_ORGANIZATION}/${GITHUB_REPO}.git --recursive +RUN git clone -b ${VERSION} --single-branch https://${REPO_HOST}/${GITHUB_ORGANIZATION}/${GITHUB_REPO}.git --recursive \ + && cd ${GITHUB_REPO} \ + && git lfs install \ + && git lfs pull WORKDIR /go/src/${REPO_HOST}/${GITHUB_ORGANIZATION}/${GITHUB_REPO} diff --git a/dockerfile/cosmos/native.Dockerfile b/dockerfile/cosmos/native.Dockerfile index 8f883537..679faef4 100644 --- a/dockerfile/cosmos/native.Dockerfile +++ b/dockerfile/cosmos/native.Dockerfile @@ -1,7 +1,7 @@ ARG BASE_VERSION FROM golang:${BASE_VERSION} AS build-env -RUN apk add --update --no-cache curl make git libc-dev bash gcc linux-headers eudev-dev ncurses-dev +RUN apk add --update --no-cache curl make git libc-dev bash gcc linux-headers eudev-dev ncurses-dev git-lfs ARG CLONE_KEY @@ -25,7 +25,10 @@ ARG GITHUB_REPO ARG VERSION ARG BUILD_TIMESTAMP -RUN git clone -b ${VERSION} --single-branch https://${REPO_HOST}/${GITHUB_ORGANIZATION}/${GITHUB_REPO}.git --recursive +RUN git clone -b ${VERSION} --single-branch https://${REPO_HOST}/${GITHUB_ORGANIZATION}/${GITHUB_REPO}.git --recursive \ + && cd ${GITHUB_REPO} \ + && git lfs install \ + && git lfs pull WORKDIR /go/src/${REPO_HOST}/${GITHUB_ORGANIZATION}/${GITHUB_REPO}