Skip to content

Commit

Permalink
haqq-v1.5.0 fix git-lfs
Browse files Browse the repository at this point in the history
  • Loading branch information
felichita committed Oct 7, 2024
1 parent a9c8bf0 commit ab88c85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions dockerfile/cosmos/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}

Expand Down
7 changes: 5 additions & 2 deletions dockerfile/cosmos/native.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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}

Expand Down

0 comments on commit ab88c85

Please sign in to comment.