tududi/scripts/deploy_to_docker.sh
Chris 03f38f05dc
Setup intelligence (#84)
* Add next suggestions and remove console logs

* Add pomodoro timer

* Add pomodoro switch in settings

* Fix pomodoro setting

* Add timezones to settings

* Fix an issue with password reset

* Cleanup

* Sort tags alphabetically

* Clean up today's view

* Add an indicator for repeatedly added to today

* Refactor tags

* Add due date today item

* Move recurrence to the subtitle area

* Fix today layout

* Add a badge to Inbox items

* Move inbox badge to sidebar

* Add quotes and progress bar

* Add translations for quotes

* Fix test issues

* Add helper script for docker local

* Set up overdue tasks

* Add  linux/arm/v7 build to deploy script

* Add  linux/arm/v7 build to deploy script pt2

* Fix an issue with helmet and SSL

* Add volume db persistence

* Fix cog icon issues
2025-06-27 14:02:18 +03:00

42 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status
# Check if version argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 version (e.g., v0.38)"
exit 1
fi
version="$1"
# Ensure that the version string starts with 'v'
if [[ "$version" != v* ]]; then
echo "Error: Version must start with 'v'"
exit 1
fi
# Remove the leading 'v' for the docker tag if needed (e.g., v0.38 becomes 0.38)
docker_tag="${version:1}"
# Create git tag
echo "Creating git tag: $version"
# git tag "$version"
# Ensure buildx is available and setup a new builder if needed
echo "Setting up Docker buildx for multi-architecture builds"
docker buildx ls | grep -q mybuilder || docker buildx create --name mybuilder --use
docker buildx inspect --bootstrap
# Build and push multi-architecture images (AMD64, ARM64, ARMv7) with the version tag
echo "Building and pushing multi-architecture docker image: chrisvel/tududi:$docker_tag"
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 \
-t chrisvel/tududi:"$docker_tag" \
--push .
# Build and push multi-architecture images (AMD64, ARM64, ARMv7) with the latest tag
echo "Building and pushing multi-architecture docker image: chrisvel/tududi:latest"
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 \
-t chrisvel/tududi:latest \
--push .
echo "Deployment complete!"