add: git-lfs to Dockerfile
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m11s
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m11s
This commit is contained in:
parent
ebaff0c72c
commit
b2a0e46d4e
@ -11,6 +11,15 @@ jobs:
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
# with:
|
||||
# lfs: 'true'
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
function EscapeForwardSlash() { echo "$1" | sed 's/\//\\\//g'; }
|
||||
readonly ReplaceStr="EscapeForwardSlash ${{ gitea.repository }}.git/info/lfs/objects/batch"; sed -i "s/\(\[http\)\( \".*\)\"\]/\1\2`$ReplaceStr`\"]/" .git/config
|
||||
git config --local lfs.transfer.maxretries 1
|
||||
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
||||
/usr/bin/git lfs checkout
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
|
Loading…
x
Reference in New Issue
Block a user