Skip to content

Commit

Permalink
Disbaled action runners. IT's build on-premise now.
Browse files Browse the repository at this point in the history
  • Loading branch information
expaso committed Mar 24, 2024
1 parent 98e17a2 commit 8bfb0ee
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
24 changes: 22 additions & 2 deletions project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions timescaledb/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ breaking_versions:
3.0.0
3.0.1
3.0.2
4.0.0
ports:
5432/tcp:
ports_description:
Expand Down
2 changes: 1 addition & 1 deletion timescaledb/rootfs/etc/s6-overlay/s6-rc.d/init-addon/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8bfb0ee

Please sign in to comment.