Skip to content

Commit 5e3c837

Browse files
committed
feat: updated to v5.3.2
1 parent 0d7ec4a commit 5e3c837

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

build-images.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@ images=()
1313
repobase="${REPOBASE:-ghcr.io/geniusdynamics}"
1414
# Configure the image name
1515
reponame="matomo"
16-
matomo_version="5.0.3"
16+
matomo_version="5.3.2"
1717
# Create a new empty container image
1818
container=$(buildah from scratch)
1919

2020
# Reuse existing nodebuilder-matomo container, to speed up builds
2121
if ! buildah containers --format "{{.ContainerName}}" | grep -q nodebuilder-matomo; then
22-
echo "Pulling NodeJS runtime..."
23-
buildah from --name nodebuilder-matomo -v "${PWD}:/usr/src:Z" docker.io/library/node:lts
22+
echo "Pulling NodeJS runtime..."
23+
buildah from --name nodebuilder-matomo -v "${PWD}:/usr/src:Z" docker.io/library/node:lts
2424
fi
2525

2626
echo "Build static UI files with node..."
2727
buildah run \
28-
--workingdir=/usr/src/ui \
29-
--env="NODE_OPTIONS=--openssl-legacy-provider" \
30-
nodebuilder-matomo \
31-
sh -c "yarn install && yarn build"
28+
--workingdir=/usr/src/ui \
29+
--env="NODE_OPTIONS=--openssl-legacy-provider" \
30+
nodebuilder-matomo \
31+
sh -c "yarn install && yarn build"
3232

3333
# Add imageroot directory to the container image
3434
buildah add "${container}" imageroot /imageroot
3535
buildah add "${container}" ui/dist /ui
3636
# Setup the entrypoint, ask to reserve one TCP port with the label and set a rootless container
3737
buildah config --entrypoint=/ \
38-
--label="org.nethserver.authorizations=traefik@node:routeadm" \
39-
--label="org.nethserver.tcp-ports-demand=1" \
40-
--label="org.nethserver.rootfull=0" \
41-
--label="org.nethserver.images=docker.io/matomo:${matomo_version} docker.io/mariadb:10.11.6" \
42-
"${container}"
38+
--label="org.nethserver.authorizations=traefik@node:routeadm" \
39+
--label="org.nethserver.tcp-ports-demand=1" \
40+
--label="org.nethserver.rootfull=0" \
41+
--label="org.nethserver.images=docker.io/matomo:${matomo_version} docker.io/mariadb:10.11.6" \
42+
"${container}"
4343
# Commit the image
4444
buildah commit "${container}" "${repobase}/${reponame}"
4545

@@ -57,14 +57,14 @@ images+=("${repobase}/${reponame}")
5757
#
5858

5959
#
60-
# Setup CI when pushing to Github.
60+
# Setup CI when pushing to Github.
6161
# Warning! docker::// protocol expects lowercase letters (,,)
6262
if [[ -n "${CI}" ]]; then
63-
# Set output value for Github Actions
64-
printf "images=%s\n" "${images[*],,}" >> "${GITHUB_OUTPUT}"
63+
# Set output value for Github Actions
64+
printf "images=%s\n" "${images[*],,}" >>"${GITHUB_OUTPUT}"
6565
else
66-
# Just print info for manual push
67-
printf "Publish the images with:\n\n"
68-
for image in "${images[@],,}"; do printf " buildah push %s docker://%s:%s\n" "${image}" "${image}" "${IMAGETAG:-latest}" ; done
69-
printf "\n"
66+
# Just print info for manual push
67+
printf "Publish the images with:\n\n"
68+
for image in "${images[@],,}"; do printf " buildah push %s docker://%s:%s\n" "${image}" "${image}" "${IMAGETAG:-latest}"; done
69+
printf "\n"
7070
fi

0 commit comments

Comments
 (0)