SOY NV AI commited on
Commit
d098e7b
ยท
1 Parent(s): 5c73949

Add dockerignore file and update GitHub Actions workflow

Browse files
Files changed (2) hide show
  1. .github/workflows/sync_to_hub.yml +19 -18
  2. dockerignore +14 -0
.github/workflows/sync_to_hub.yml CHANGED
@@ -8,29 +8,30 @@ jobs:
8
  sync-to-hub:
9
  runs-on: ubuntu-latest
10
  steps:
11
- # 1. [ํ•ต์‹ฌ] ๋””์Šคํฌ ์šฉ๋Ÿ‰ ํ™•๋ณด (์“ธ๋ฐ์—†๋Š” ํ”„๋กœ๊ทธ๋žจ ์‚ญ์ œ)
12
- - name: Free Disk Space (Ubuntu)
13
- uses: jlumbroso/free-disk-space@main
14
  with:
15
- # AI ํ”„๋กœ์ ํŠธ์— ๋ถˆํ•„์š”ํ•œ ๊ฒƒ๋“ค์„ ๊ณผ๊ฐํ•˜๊ฒŒ ์ง€์›๋‹ˆ๋‹ค.
16
- tool-cache: true
17
- android: true
18
- dotnet: true
19
- haskell: true
20
- large-packages: true
21
- docker-images: true
22
- swap-storage: true
23
 
24
- # 2. ๋‚ด ์ฝ”๋“œ ๊ฐ€์ ธ์˜ค๊ธฐ
25
  - uses: actions/checkout@v3
26
  with:
27
- fetch-depth: 0
28
- lfs: true
29
 
30
- # 3. Hugging Face๋กœ ๋ฐ€์–ด๋„ฃ๊ธฐ
31
  - name: Push to hub
32
  env:
33
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
34
- # [์ฃผ์˜] ์•„๋ž˜ ์ฃผ์†Œ์˜ ๋ณธ์ธ ์•„์ด๋””์™€ ์ŠคํŽ˜์ด์Šค ์ด๋ฆ„์„ ํ™•์ธํ•˜์„ธ์š”!
35
- run: git push https://wiizm:$HF_TOKEN@huggingface.co/spaces/wiizm/soyailabs main
36
-
 
 
 
8
  sync-to-hub:
9
  runs-on: ubuntu-latest
10
  steps:
11
+ # 1. [์ดˆ๊ฐ•๋ ฅ ์ฒญ์†Œ] ์•ˆ๋“œ๋กœ์ด๋“œ, ๋‹ท๋„ท, ํ•˜์Šค์ผˆ ๋“ฑ AI์™€ ๊ด€๋ จ ์—†๋Š” ํˆด์„ ์ „๋ถ€ ์‚ญ์ œ
12
+ - name: Maximize Build Space
13
+ uses: easimon/maximize-build-space@master
14
  with:
15
+ root-reserve-mb: 2048
16
+ swap-size-mb: 1024
17
+ remove-dotnet: 'true'
18
+ remove-android: 'true'
19
+ remove-haskell: 'true'
20
+ remove-codeql: 'true'
21
+ remove-docker-images: 'true'
 
22
 
23
+ # 2. ์ฝ”๋“œ ์ฒดํฌ์•„์›ƒ (LFS ํŒŒ์ผ ์ œ์™ธํ•˜๊ณ  ๊ฐ€๋ณ๊ฒŒ ๋ฐ›๊ธฐ)
24
  - uses: actions/checkout@v3
25
  with:
26
+ fetch-depth: 1 # ์ „์ฒด ์—ญ์‚ฌ๊ฐ€ ์•„๋‹Œ ์ตœ์‹  ์ฝ”๋“œ๋งŒ ๋ฐ›์Œ (์šฉ๋Ÿ‰ ์ ˆ์•ฝ)
27
+ lfs: false # ๊ฑฐ๋Œ€ ํŒŒ์ผ(LFS) ๋‹ค์šด๋กœ๋“œ ๊ธˆ์ง€
28
 
29
+ # 3. Hugging Face๋กœ ๋ฐฐํฌ
30
  - name: Push to hub
31
  env:
32
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
33
+ run: |
34
+ git config --global user.email "action@github.com"
35
+ git config --global user.name "GitHub Action"
36
+ # ๊ฐ•์ œ ํ‘ธ์‹œ ์˜ต์…˜(-f) ์ถ”๊ฐ€
37
+ git push -f https://wiizm:$HF_TOKEN@huggingface.co/spaces/wiizm/soyailabs main
dockerignore ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # .dockerignore
2
+ .git
3
+ .github
4
+ venv
5
+ env
6
+ __pycache__
7
+ *.pyc
8
+ *.pyo
9
+ *.pyd
10
+ .DS_Store
11
+ *.gguf
12
+ *.bin
13
+ models/
14
+ logs/