build: update build script for custom app
This commit is contained in:
parent
a808c021ba
commit
03b1274229
20
build.sh
20
build.sh
@ -1,8 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
set -x
|
set -eux
|
||||||
set -eu
|
|
||||||
|
|
||||||
docker build --platform linux/amd64 -t dr.zoemp.be/my-custom-app:$(cat VERSION) -f Dockerfile.cloudron .
|
APP="${1:-shaarlitest}"
|
||||||
docker push dr.zoemp.be/my-custom-app:$(cat VERSION)
|
VERSION="$(cat VERSION)"
|
||||||
cloudron update --image dr.zoemp.be/my-custom-app:$(cat VERSION) --app my-custom-app
|
IMAGE="dr.zoemp.be/${APP}:${VERSION}"
|
||||||
|
|
||||||
|
docker build --platform linux/amd64 -t "${IMAGE}" -f Dockerfile .
|
||||||
|
docker push "${IMAGE}"
|
||||||
|
|
||||||
|
if cloudron list | awk '{print $2}' | grep -q "^${APP}\.zoemp\.be$"; then
|
||||||
|
cloudron update --image "${IMAGE}" --app "${APP}"
|
||||||
|
else
|
||||||
|
cloudron install --image "${IMAGE}" --location "${APP}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user