Compare commits

...

2 Commits

2 changed files with 20 additions and 7 deletions

View File

@ -1,2 +1,7 @@
# Changelog
## Unreleased (a808c02..03b1274)
#### Build system
- update build script for custom app - (03b1274) - Morgan Wattiez
#### Features
- add initial project setup and configuration files - (a808c02) - Morgan Wattiez

View File

@ -1,8 +1,16 @@
#!/bin/sh
set -x
set -eu
#!/usr/bin/env bash
set -eux
docker build --platform linux/amd64 -t dr.zoemp.be/my-custom-app:$(cat VERSION) -f Dockerfile.cloudron .
docker push dr.zoemp.be/my-custom-app:$(cat VERSION)
cloudron update --image dr.zoemp.be/my-custom-app:$(cat VERSION) --app my-custom-app
APP="${1:-shaarlitest}"
VERSION="$(cat VERSION)"
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