Compare commits
No commits in common. "7d725252c535dbad7c59c3069c0076b4939c7970" and "a808c021bafae979a1fd2358c634dd5730fe9f7b" have entirely different histories.
7d725252c5
...
a808c021ba
@ -1,7 +1,2 @@
|
|||||||
## Unreleased (a808c02..03b1274)
|
# Changelog
|
||||||
#### Build system
|
|
||||||
- update build script for custom app - (03b1274) - Morgan Wattiez
|
|
||||||
#### Features
|
|
||||||
- add initial project setup and configuration files - (a808c02) - Morgan Wattiez
|
|
||||||
|
|
||||||
|
|
||||||
|
20
build.sh
20
build.sh
@ -1,16 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
set -eux
|
set -x
|
||||||
|
set -eu
|
||||||
|
|
||||||
APP="${1:-shaarlitest}"
|
docker build --platform linux/amd64 -t dr.zoemp.be/my-custom-app:$(cat VERSION) -f Dockerfile.cloudron .
|
||||||
VERSION="$(cat VERSION)"
|
docker push dr.zoemp.be/my-custom-app:$(cat VERSION)
|
||||||
IMAGE="dr.zoemp.be/${APP}:${VERSION}"
|
cloudron update --image dr.zoemp.be/my-custom-app:$(cat VERSION) --app my-custom-app
|
||||||
|
|
||||||
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