Skip to content

Commit

Permalink
Updated build script and renovate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Jan 10, 2023
1 parent f30ee6b commit bd2a9c9
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-apidoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- '**/validate-input.json'
- '**/validate-output.json'
- '**/validator-definitions.json'
branches-ignore:
- 'renovate/**'
tags:
- "**"

jobs:
build-apidoc:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: "Publish images"

on:
push:
branches-ignore:
- 'renovate/**'
tags:
- "**"

permissions:
packages: write
Expand Down
8 changes: 4 additions & 4 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Terminate on error
set -e

NC_VERSION=25
NC_VERSION=25.0.2

# Prepare variables for later use
images=()
Expand All @@ -18,7 +18,7 @@ container=$(buildah from scratch)
# Reuse existing nodebuilder-nextcloud container, to speed up builds
if ! buildah containers --format "{{.ContainerName}}" | grep -q nodebuilder-nextcloud; then
echo "Pulling NodeJS runtime..."
buildah from --name nodebuilder-nextcloud -v "${PWD}:/usr/src:Z" docker.io/library/node:lts-slim
buildah from --name nodebuilder-nextcloud -v "${PWD}:/usr/src:Z" docker.io/node:18.12.1-alpine
fi

echo "Build static UI files with node..."
Expand All @@ -32,7 +32,7 @@ buildah config --entrypoint=/ \
--label="org.nethserver.authorizations=traefik@any:routeadm" \
--label="org.nethserver.tcp-ports-demand=1" \
--label="org.nethserver.rootfull=0" \
--label="org.nethserver.images=docker.io/redis:6-alpine docker.io/mariadb:10.5 docker.io/nginx:1.21-alpine ghcr.io/nethserver/nextcloud-app:${IMAGETAG}" \
--label="org.nethserver.images=docker.io/redis:6.2.8-alpine docker.io/mariadb:10.5.18 docker.io/nginx:1.21.6-alpine ghcr.io/nethserver/nextcloud-app:${IMAGETAG}" \
"${container}"
# Commit the image
buildah commit "${container}" "${repobase}/${reponame}"
Expand Down Expand Up @@ -60,7 +60,7 @@ images+=("${nc_image}")
#

#
# Setup CI when pushing to Github.
# Setup CI when pushing to Github.
# Warning! docker::// protocol expects lowercase letters (,,)
if [[ -n "${CI}" ]]; then
# Set output value for Github Actions
Expand Down
73 changes: 73 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,78 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"ignorePaths": [
"**/ui/**"
],
"regexManagers": [
{
"fileMatch": [
"build-images.sh"
],
"matchStrings": [
"NC_VERSION=(?<currentValue>[^\\s]+)"
],
"depNameTemplate": "nextcloud",
"datasourceTemplate": "docker"
},
{
"fileMatch": [
"build-images.sh"
],
"matchStrings": [
"docker\\.io\/node:(?<currentValue>[^\\s]+)"
],
"depNameTemplate": "node",
"datasourceTemplate": "docker"
},
{
"fileMatch": [
"build-images.sh"
],
"matchStrings": [
"docker\\.io\/redis:(?<currentValue>[^\\s]+)"
],
"depNameTemplate": "redis",
"datasourceTemplate": "docker"
},
{
"fileMatch": [
"build-images.sh"
],
"matchStrings": [
"docker\\.io\/mariadb:(?<currentValue>[^\\s]+)"
],
"depNameTemplate": "mariadb",
"datasourceTemplate": "docker"
},
{
"fileMatch": [
"build-images.sh"
],
"matchStrings": [
"docker\\.io\/nginx:(?<currentValue>[^\\s]+)"
],
"depNameTemplate": "nginx",
"datasourceTemplate": "docker"
},
{
"fileMatch": [
"test-module.sh"
],
"matchStrings": [
"ghcr\\.io\/marketsquare\/robotframework-browser\/rfbrowser-stable:(?<currentValue>[^\\s]+)"
],
"depNameTemplate": "ghcr.io/marketsquare/robotframework-browser/rfbrowser-stable",
"datasourceTemplate": "docker"
}
],
"packageRules": [
{
"matchPackageNames": [
"node"
],
"allowedVersions": "<= 18"
}
]
}

0 comments on commit bd2a9c9

Please sign in to comment.