Artifact storage quota has been hit. Unable to upload any new artifacts 해결 방법

2021. 8. 18. 16:18git

git action에 익숙하지 않아 너무 많이 시도를해서 Artifact가 한도를 초과하여 이런 오류가 발생하고 

메일

이런 메일도 날라온다. 

 

해결 방법은 git action 페이지로 이동하면  맨 밑에 Artifacts가 있다.

Artifacts

지금은 일일이 휴지통 버튼을 눌러 삭제하는 방법만 존재 하는것 같다.

 

출처 :  https://github.community/t/reached-artifact-limit/16860/23

하지만 미리 방지 할 수 있다.

Artifacts에 시간 설정을 하여 자동 삭제하는 방법이 있다. 

 

기본은 90일이고  yml파일을 이용해 업로드시 retention-days: 5 (5일 설정) 을 하면 5일 뒤에 삭제되어 공간이 덜 차지하게 된다. 

// yml 파일 
  - name: 'Create a file'
    run: echo "I won't live long" > my_file.txt

  - name: 'Upload Artifact'
    uses: actions/upload-artifact@v2
    with:
      name: my-artifact
      path: my_file.txt
      retention-days: 5

 

출처 : https://github.com/actions/upload-artifact

 

GitHub - actions/upload-artifact

Contribute to actions/upload-artifact development by creating an account on GitHub.

github.com

 

728x90
반응형