Skip to content

Commit

Permalink
chore: use base ns8 config for Renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi committed Jan 13, 2025
1 parent effbe96 commit 497ac07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 103 deletions.
5 changes: 1 addition & 4 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Terminate on error
set -e

NC_VERSION=29.0.10

# Prepare variables for later use
images=()
# The image will be pushed to GitHub container registry
Expand Down Expand Up @@ -43,8 +41,7 @@ images+=("${repobase}/${reponame}")

# Build nextcloud-app image
pushd nextcloud
nc_image=${repobase}/nextcloud-app
sed "s/_NC_VERSION_/${NC_VERSION}/" Dockerfile | buildah bud -f - -t ${nc_image}
buildah bud -t ${repobase}/nextcloud-app
popd

# Append the image URL to the images array
Expand Down
2 changes: 1 addition & 1 deletion nextcloud/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/nextcloud:_NC_VERSION_-fpm-alpine
FROM docker.io/library/nextcloud:29.0.10-fpm-alpine

RUN set -ex; \
\
Expand Down
99 changes: 1 addition & 98 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,103 +1,6 @@
{
"$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": "MarketSquare/robotframework-browser",
"datasourceTemplate": "github-releases"
}
],
"packageRules": [
{
"matchPackageNames": [
"nextcloud"
],
"allowedVersions": "<= 28"
},
{
"matchPackageNames": [
"node"
],
"allowedVersions": "<= 18"
},
{
"matchPackageNames": [
"ghcr.io/marketsquare/robotframework-browser/rfbrowser-stable"
],
"allowedVersions": "<= 10.0"
},
{
"matchPackageNames": [
"redis"
],
"allowedVersions": "<= 6"
},
{
"matchPackageNames": [
"mariadb"
],
"allowedVersions": "<= 10.6"
}
"local>NethServer/.github:ns8"
]
}

0 comments on commit 497ac07

Please sign in to comment.