@@ -13,33 +13,33 @@ images=()
1313repobase=" ${REPOBASE:- ghcr.io/ geniusdynamics} "
1414# Configure the image name
1515reponame=" matomo"
16- matomo_version=" 5.0.3 "
16+ matomo_version=" 5.3.2 "
1717# Create a new empty container image
1818container=$( buildah from scratch)
1919
2020# Reuse existing nodebuilder-matomo container, to speed up builds
2121if ! 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
2424fi
2525
2626echo " Build static UI files with node..."
2727buildah 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
3434buildah add " ${container} " imageroot /imageroot
3535buildah add " ${container} " ui/dist /ui
3636# Setup the entrypoint, ask to reserve one TCP port with the label and set a rootless container
3737buildah 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
4444buildah 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 (,,)
6262if [[ -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} "
6565else
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"
7070fi
0 commit comments