From 5f71cc72491a814e279534e810b65de97ef8239f Mon Sep 17 00:00:00 2001 From: d3vyce Date: Sun, 18 Feb 2024 17:54:56 +0100 Subject: [PATCH] add: git-lfs to Dockerfile --- .gitea/workflows/build_blog_image.yml | 2 ++ README.md | 1 + hugo.Dockerfile | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build_blog_image.yml b/.gitea/workflows/build_blog_image.yml index 16f1419..96f9ef4 100644 --- a/.gitea/workflows/build_blog_image.yml +++ b/.gitea/workflows/build_blog_image.yml @@ -11,6 +11,8 @@ jobs: steps: - name: checkout code uses: actions/checkout@v3 + with: + lfs: 'true' - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx diff --git a/README.md b/README.md index 192e85d..beb29de 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,5 @@ export PATH=$PATH:/usr/local/go/bin CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest git submodule update --recursive +git lfs pull ``` \ No newline at end of file diff --git a/hugo.Dockerfile b/hugo.Dockerfile index 262a294..e6b42a8 100644 --- a/hugo.Dockerfile +++ b/hugo.Dockerfile @@ -6,5 +6,5 @@ ENV GOOS=linux ENV GO111MODULE=on RUN apk update && \ - apk add --no-cache gcc musl-dev g++ git + apk add --no-cache gcc musl-dev g++ git git-lfs RUN go install -tags extended github.com/gohugoio/hugo@v0.122.0