This commit is contained in:
J0WI 2024-04-25 23:19:03 +02:00 committed by GitHub
commit 1cf1e63fc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 58 additions and 0 deletions

View File

@ -70,6 +70,24 @@ latest=$( cat latest.txt )
versions=( */ )
versions=( "${versions[@]%/}" )
for version in "${versions[@]}"; do
if [ "$version" = "notify_push" ]; then
commit="$(dockerfileCommit "$version")"
fullversion="$( awk '$1 == "ENV" && $2 == "NOTIFY_PUSH_VERSION" { print $3; exit }' "$version/Dockerfile" )"
versionAliases=( "$fullversion" "${fullversion%.*}" "${fullversion%.*.*}" )
variantAliases=( "${versionAliases[@]/%/-$version}" $version )
cat <<-EOE
Tags: $(join ', ' "${variantAliases[@]}")
Architectures: amd64, arm32v7, arm64v8
GitCommit: $commit
Directory: $version
EOE
continue
fi
variants=( $version/*/ )
variants=( $(for variant in "${variants[@]%/}"; do
echo "$(basename "$variant")"

27
notify_push/Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM alpine:3.13
RUN apk add --no-cache ca-certificates
# https://github.com/nextcloud/notify_push/releases
ENV NOTIFY_PUSH_VERSION 0.1.6
RUN set -ex; \
\
apkArch="$(apk --print-arch)"; \
npTriplet="unknown-linux-musl"; \
case "$apkArch" in \
aarch64|x86_64) npArch="$apkArch" ;; \
armv7) npArch="$apkArch"; $npTriplet="${npTriplet}-eabihf" ;; \
*) echo >&2 "error: unsupported arch: $apkArch"; exit 1 ;; \
esac; \
\
wget -O /usr/local/bin/notify_push "https://github.com/nextcloud/notify_push/releases/download/v${NOTIFY_PUSH_VERSION}/notify_push-$npArch-$npTriplet"; \
\
chmod +x /usr/local/bin/notify_push; \
notify_push --version
USER nobody
EXPOSE 7867
CMD ["notify_push"]

View File

@ -71,6 +71,16 @@ imagick_version="$(
| tail -1
)"
notify_push_version="$(
git ls-remote --tags https://github.com/nextcloud/notify_push.git \
| cut -d/ -f3 \
| grep -vE -- '-rc|-b' \
| tr -d '^{}' \
| sed -E 's/^v//' \
| sort -V \
| tail -1
)"
declare -A pecl_versions=(
[APCu]="$apcu_version"
[memcached]="$memcached_version"
@ -179,3 +189,6 @@ for version in "${versions[@]}"; do
done
fi
done
echo "updating notify_push $notify_push_version"
sed -re 's/^ENV NOTIFY_PUSH_VERSION .*$/ENV NOTIFY_PUSH_VERSION '"$notify_push_version"'/;' -i "notify_push/Dockerfile"