diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml_disabled similarity index 100% rename from .github/workflows/cd.yml rename to .github/workflows/cd.yml_disabled diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml_disabled similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/ci.yml_disabled diff --git a/project.sh b/project.sh index c2e855f..273f588 100755 --- a/project.sh +++ b/project.sh @@ -98,7 +98,24 @@ function run_local() { docker run --rm --name timescaledb --platform ${PLATFORM} -v /tmp/timescale_data:/data -p 5432:5432 husselhans/hassos-addon-timescaledb-aarch64:dev } +function release() { + local tag=$1 + printInColor "Releasing docker image with tag ${tag}.." + + #Get all platforms from /timeacledb/config.yaml + platforms=$(yq -r '.arch[]' ./timescaledb/config.yaml) + + #And loop trough them + for platform in $platforms; do + printInColor "Releasing platform ${platform} with tag ${tag}.." + + docker tag husselhans/hassos-addon-timescaledb-${platform}:latest husselhans/hassos-addon-timescaledb-${platform}:${tag} + docker push husselhans/hassos-addon-timescaledb-${platform}:${tag} + done +} + function inspect() { + local tag=$1 printInColor "Starting standalone docker image shell" # Run the docker image locally @@ -182,8 +199,11 @@ elif [ "$1" == "debug" ]; then run_local exit 0 elif [ "$1" == "inspect" ]; then - build type=docker - inspect + #build type=docker + inspect $2 + exit 0 +elif [ "$1" == "release" ]; then + release $2 exit 0 else printInColor "Unknown command!" "red" diff --git a/timescaledb/config.yaml b/timescaledb/config.yaml index 552dc49..c509b48 100644 --- a/timescaledb/config.yaml +++ b/timescaledb/config.yaml @@ -28,6 +28,7 @@ breaking_versions: 3.0.0 3.0.1 3.0.2 + 4.0.0 ports: 5432/tcp: ports_description: diff --git a/timescaledb/rootfs/etc/s6-overlay/s6-rc.d/init-addon/run b/timescaledb/rootfs/etc/s6-overlay/s6-rc.d/init-addon/run index 7e34125..faf969f 100755 --- a/timescaledb/rootfs/etc/s6-overlay/s6-rc.d/init-addon/run +++ b/timescaledb/rootfs/etc/s6-overlay/s6-rc.d/init-addon/run @@ -185,7 +185,7 @@ else # Check if we need to upgrade from 14 to 15 if [[ $(< ${POSTGRES_DATA}/PG_VERSION) == "14" ]]; then bashio::log.notice "A database upgrade is required from Postgres 14." - bashio::log.error "Upgrade was not succesfull. This addon version does no longer support Postgres 12. Please upgrade to the previous version of the addon and upgrade to Postgres 14 first." + bashio::log.error "Upgrade was not succesfull. This addon version does no longer support Postgres 14. Please upgrade to the previous version of the addon and upgrade to Postgres 15 first." exit 1 fi