exclude mypy_cache from deploy

This commit is contained in:
simon 2023-04-09 13:59:42 +07:00
parent 06c7968070
commit 4130a8c5c9
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ function sync_blackhole {
--exclude "**/cache" \ --exclude "**/cache" \
--exclude "**/__pycache__/" \ --exclude "**/__pycache__/" \
--exclude "db.sqlite3" \ --exclude "db.sqlite3" \
--exclude ".mypy_cache" \
. -e ssh "$host":tubearchivist . -e ssh "$host":tubearchivist
ssh "$host" 'docker build -t bbilly1/tubearchivist --build-arg TARGETPLATFORM="linux/amd64" tubearchivist' ssh "$host" 'docker build -t bbilly1/tubearchivist --build-arg TARGETPLATFORM="linux/amd64" tubearchivist'
@ -49,6 +50,7 @@ function sync_test {
--exclude "**/cache" \ --exclude "**/cache" \
--exclude "**/__pycache__/" \ --exclude "**/__pycache__/" \
--exclude "db.sqlite3" \ --exclude "db.sqlite3" \
--exclude ".mypy_cache" \
. -e ssh "$host":tubearchivist . -e ssh "$host":tubearchivist
# copy default docker-compose file if not exist # copy default docker-compose file if not exist