Skip to content

Commit 4f7e2ea

Browse files
committed
fix for docker hub hooks, quicker build
1 parent ed9e5a2 commit 4f7e2ea

8 files changed

+13
-12
lines changed

ChangeLog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 21.2 (2021-02-07)
1+
# 21.2 (2021-02-08)
22

33
## Bug Fixes
44
* fix for UDP device connection issue

contrib/docker/Dockerfile.release

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV EBUSD_ARCH amd64
1313
ENV EBUSD_VERSION 21.2
1414

1515
RUN git clone https://github.com/john30/ebusd.git /build \
16-
&& ./make_all.sh
16+
&& ./make_debian.sh
1717

1818

1919

contrib/docker/Dockerfile.release.arm32v5

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV EBUSD_ARCH arm32v5
1313
ENV EBUSD_VERSION 21.2
1414

1515
RUN git clone https://github.com/john30/ebusd.git /build \
16-
&& ./make_all.sh
16+
&& ./make_debian.sh
1717

1818

1919

contrib/docker/Dockerfile.release.arm32v7

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV EBUSD_ARCH arm32v7
1313
ENV EBUSD_VERSION 21.2
1414

1515
RUN git clone https://github.com/john30/ebusd.git /build \
16-
&& ./make_all.sh
16+
&& ./make_debian.sh
1717

1818

1919

contrib/docker/Dockerfile.release.arm64v8

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV EBUSD_ARCH arm64v8
1313
ENV EBUSD_VERSION 21.2
1414

1515
RUN git clone https://github.com/john30/ebusd.git /build \
16-
&& ./make_all.sh
16+
&& ./make_debian.sh
1717

1818

1919

contrib/docker/Dockerfile.release.i386

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV EBUSD_ARCH i386
1313
ENV EBUSD_VERSION 21.2
1414

1515
RUN git clone https://github.com/john30/ebusd.git /build \
16-
&& ./make_all.sh
16+
&& ./make_debian.sh
1717

1818

1919

contrib/docker/Dockerfile.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV EBUSD_ARCH %EBUSD_ARCH%
1313
ENV EBUSD_VERSION %EBUSD_VERSION%
1414

1515
RUN git clone https://github.com/john30/ebusd.git /build \
16-
&& %EBUSD_MAKE%
16+
&& ./make_debian.sh
1717

1818
%EBUSD_UPLOAD_LINES%
1919

contrib/docker/update.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,34 @@ function replaceTemplate () {
2323
-e "s#%QEMU_FROM_LINE%#${qemu_from_line}#g" \
2424
-e "s#%BASE_IMAGE%#${prefix}${BASE_IMAGE:-$DEFAULT_IMAGE}#g" \
2525
-e "s#%QEMU_FROM_COPY%#${qemu_from_copy}#g" \
26-
-e "s#%EBUSD_MAKE%#${make}#g" \
2726
-e "s#%EBUSD_VERSION%#${EBUSD_VERSION}#g" \
2827
-e "s#%EBUSD_VERSION_VARIANT%#${version_variant}#g" \
2928
-e "s#%EBUSD_ARCH%#${arch}#g" \
3029
-e "s#%EXTRA_RM%#${extra_rm}#g" \
3130
-e "s#%EBUSD_UPLOAD_LINES%#${upload_lines}#g" \
32-
Dockerfile.template > "${dir}Dockerfile${suffix}"
31+
Dockerfile.template > "${dir}Dockerfile${namesuffix}${suffix}"
3332
echo "updated ${dir}Dockerfile${suffix}"
3433
}
3534

3635
if [[ -z "$1" ]]; then
3736
# devel updates
3837
version_variant='-devel'
39-
make='./make_debian.sh'
4038
dir=''
4139
upload_line=''
40+
namesuffix=''
4241
for arch in $archs; do
4342
replaceTemplate
4443
done
4544
fi
4645

4746
# release updates
4847
version_variant=''
49-
make='./make_all.sh'
50-
dir=${1:-release/}
48+
dir="$1"
5149
if [[ -n "$1" ]]; then
5250
upload_lines='ARG UPLOAD_URL\nARG UPLOAD_CREDENTIALS\nARG UPLOAD_OS\nRUN if [ -n "\$UPLOAD_URL" ] \&\& [ -n "\$UPLOAD_CREDENTIALS" ]; then for img in ebusd-*.deb; do echo -n "upload \$img: "; curl -fs -u "\$UPLOAD_CREDENTIALS" -X POST --data-binary "@\$img" -H "Content-Type: application/octet-stream" "\$UPLOAD_URL/\$img?a=\$EBUSD_ARCH\&o=\$UPLOAD_OS\&v=\$EBUSD_VERSION" || echo "failed"; done; fi'
51+
namesuffix=''
52+
else
53+
namesuffix='.release'
5354
fi
5455
for arch in $archs; do
5556
replaceTemplate

0 commit comments

Comments
 (0)