ignore versioning assets

* allow VPN access to /dev/net/tun
* Renovate AWS AMIs (Ubuntu)

change-type: patch
This commit is contained in:
Anton Belodedenko 2024-12-09 10:05:49 -08:00
parent 48d2da45a3
commit 3a3008697b
No known key found for this signature in database
GPG Key ID: D094F44E5E29445A
4 changed files with 32 additions and 1 deletions

27
.github/renovate.json vendored Normal file
View File

@ -0,0 +1,27 @@
{
"extends": ["github>balena-io/renovate-config"],
"ignorePaths": [
"**/node_modules/**",
"**/bower_components/**",
"**/vendor/**",
"**/examples/**",
"**/__tests__/**",
"**/test/**",
"**/tests/suites/**",
"**/__fixtures__/**",
"**/Dockerfile.template"
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
".*"
],
"matchStrings": [
".*amiFilter=(?<packageName>.*?)\n(.*currentImageName=(?<currentDigest>.*?)\n)?(.*\n)?.*?(?<depName>[a-zA-Z0-9-_:]*)[ ]*?[:|=][ ]*?[\"|']?(?<currentValue>ami-[a-z0-9]{17})[\"|']?.*"
],
"datasourceTemplate": "aws-machine-image",
"versioningTemplate": "aws-machine-image"
}
]
}

View File

@ -52,7 +52,7 @@ jobs:
# https://docs.renovatebot.com/modules/datasource/aws-machine-image/ # https://docs.renovatebot.com/modules/datasource/aws-machine-image/
# amiFilter=[{"Name":"owner-id","Values":["099720109477"]},{"Name":"name","Values":["ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*"]},{"region":"us-east-1"}] # amiFilter=[{"Name":"owner-id","Values":["099720109477"]},{"Name":"name","Values":["ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*"]},{"region":"us-east-1"}]
# currentImageName=unknown # currentImageName=unknown
ami: ami-04b70fa74e45c3917 ami: ami-00f3c44a2de45a590
subdomain: ${{ vars.DNS_SUBDOMAIN || 'auto' }} subdomain: ${{ vars.DNS_SUBDOMAIN || 'auto' }}
dns_tld: ${{ vars.DNS_TLD || 'balena-devices.com' }} dns_tld: ${{ vars.DNS_TLD || 'balena-devices.com' }}

View File

@ -1,5 +1,6 @@
# See https://pre-commit.com for more information # See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
exclude: ^(.versionbot/|CHANGELOG.md|VERSION|README.md)
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0 rev: v3.2.0
@ -7,6 +8,7 @@ repos:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-yaml - id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/shellcheck-py/shellcheck-py - repo: https://github.com/shellcheck-py/shellcheck-py

View File

@ -156,6 +156,8 @@ services:
VPN_PORT: 443 VPN_PORT: 443
# ensure correct service instance IP is registered with the API # ensure correct service instance IP is registered with the API
VPN_SERVICE_REGISTER_INTERFACE: eth0 VPN_SERVICE_REGISTER_INTERFACE: eth0
devices:
- /dev/net/tun
# https://github.com/balena-io/open-balena-db # https://github.com/balena-io/open-balena-db
db: db: