Skip to content

Commit a950c8a

Browse files
committed
build: bail out upon any error in docker builds
Signed-off-by: nachoparker <[email protected]>
1 parent c2b1a74 commit a950c8a

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

bin/ncp/CONFIG/nc-nextcloud.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ configure()
8585
{
8686
## IF BETA SELECTED ADD "pre" to DOWNLOAD PATH
8787
[[ "$BETA" == yes ]] && local PREFIX="pre"
88-
88+
8989
## DOWNLOAD AND (OVER)WRITE NEXTCLOUD
9090
cd /var/www/
9191

docker/lamp/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV DOCKERBUILD 1
1313
COPY etc/ncp.cfg etc/library.sh lamp.sh /usr/local/etc/
1414

1515
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
16+
set -e; \
1617

1718
# installation
1819
apt-get update; \

docker/nextcloud/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ COPY bin/ncp/CONFIG/nc-nextcloud.sh /
1515
COPY etc/ncp-config.d/nc-nextcloud.cfg /usr/local/etc/ncp-config.d/
1616

1717
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
18+
set -e; \
1819

1920
# mark as image build
2021
touch /.ncp-image; \
@@ -23,7 +24,6 @@ touch /.ncp-image; \
2324
apt-get update; \
2425
apt-get install --no-install-recommends -y wget ca-certificates sudo jq; \
2526
source /usr/local/etc/library.sh; \
26-
set +x; \
2727
install_app /nc-nextcloud.sh; \
2828
run_app_unsafe /nc-nextcloud.sh; \
2929
mv /var/www/nextcloud /data-ro/nextcloud; \

docker/nextcloudpi/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ COPY docker /tmp/ncp-build/docker/
2323
COPY etc/ncp-config.d/nc-init.cfg /usr/local/etc/ncp-config.d/nc-init-copy.cfg
2424

2525
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
26+
set -e; \
2627

2728
# make sure we don't accidentally disable first run wizard
2829
rm -f ncp-web/{wizard.cfg,ncp-web.cfg}; \

0 commit comments

Comments
 (0)