Skip to content

Commit

Permalink
simplify deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bbilly1 committed Feb 20, 2024
1 parent 14263c8 commit 6c1d57a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function rebuild_test {
rsync -a --progress --delete-after \
--exclude ".git" \
--exclude ".gitignore" \
--exclude ".mypy_cache" \
--exclude ".venv" \
--exclude "**/cache" \
--exclude "**/__pycache__/" \
--exclude "db.sqlite3" \
Expand Down Expand Up @@ -67,10 +69,8 @@ function docker_publish {
echo "build and push $VERSION?"
read -rn 1

# multiarch fix
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# start build
sudo docker buildx build \
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t bbilly1/tilefy \
-t bbilly1/tilefy:"$VERSION" --push .
Expand All @@ -92,8 +92,8 @@ function sync_unstable {
fi

# start amd64 build
sudo docker buildx build \
--platform linux/amd64 \
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t bbilly1/tilefy:unstable --push .

}
Expand All @@ -102,8 +102,6 @@ function sync_unstable {
if [[ $1 == "test" ]]; then
rebuild_test
elif [[ $1 == "validate" ]]; then
# check package versions in requirements.txt for updates
python version_check.py
validate "$2"
elif [[ $1 == "docker" ]]; then
docker_publish
Expand Down

0 comments on commit 6c1d57a

Please sign in to comment.