Skip to content

Commit

Permalink
Update build_and_publish.yml (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Temmmmmo authored and grigoriev-semyon committed May 25, 2023
1 parent 2a2e923 commit 2d988e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
--env ALLOW_STUDENT_NUMBER=true \
--env STATIC_FOLDER=/app/static \
--env STORAGE_TIME=30 \
--env MAX_PAGE_COUNT=20 \
--env MAX_PAGE_COUNT='${{ vars.MAX_PAGE_COUNT }}' \
--name ${{ env.CONTAITER_NAME }} \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
docker network connect com_profcomff_api_printer_test_network ${{ env.CONTAITER_NAME }}
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
--env ALLOW_STUDENT_NUMBER=true \
--env STATIC_FOLDER=/app/static \
--env STORAGE_TIME=168 \
--env MAX_PAGE_COUNT=20 \
--env MAX_PAGE_COUNT='${{ vars.MAX_PAGE_COUNT }}' \
--name ${{ env.CONTAITER_NAME }} \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker network connect com_profcomff_api_printer_network ${{ env.CONTAITER_NAME }}
2 changes: 1 addition & 1 deletion print_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Settings(UnionAuthSettings, BaseSettings):

CONTENT_TYPES: List[str] = ['application/pdf']
MAX_SIZE: int = 5000000 # Максимальный размер файла в байтах
MAX_PAGE_COUNT: int = 20
MAX_PAGE_COUNT: int = 50
STORAGE_TIME: int = 7 * 24 # Время хранения файла в часах
STATIC_FOLDER: DirectoryPath | None

Expand Down

0 comments on commit 2d988e2

Please sign in to comment.