From 3a3008697bc356d9b09f01a1ec60f7e9c6806ff6 Mon Sep 17 00:00:00 2001 From: Anton Belodedenko <2033996+ab77@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:05:49 -0800 Subject: [PATCH] ignore versioning assets * allow VPN access to /dev/net/tun * Renovate AWS AMIs (Ubuntu) change-type: patch --- .github/renovate.json | 27 +++++++++++++++++++++++++++ .github/workflows/tests.yml | 2 +- .pre-commit-config.yaml | 2 ++ docker-compose.yml | 2 ++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/renovate.json diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..420662d --- /dev/null +++ b/.github/renovate.json @@ -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=(?.*?)\n(.*currentImageName=(?.*?)\n)?(.*\n)?.*?(?[a-zA-Z0-9-_:]*)[ ]*?[:|=][ ]*?[\"|']?(?ami-[a-z0-9]{17})[\"|']?.*" + ], + "datasourceTemplate": "aws-machine-image", + "versioningTemplate": "aws-machine-image" + } + ] +} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ae99cd2..178bcc6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,7 +52,7 @@ jobs: # 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"}] # currentImageName=unknown - ami: ami-04b70fa74e45c3917 + ami: ami-00f3c44a2de45a590 subdomain: ${{ vars.DNS_SUBDOMAIN || 'auto' }} dns_tld: ${{ vars.DNS_TLD || 'balena-devices.com' }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b396ce9..8388fb2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,6 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks +exclude: ^(.versionbot/|CHANGELOG.md|VERSION|README.md) repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0 @@ -7,6 +8,7 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml + args: [--allow-multiple-documents] - id: check-added-large-files - repo: https://github.com/shellcheck-py/shellcheck-py diff --git a/docker-compose.yml b/docker-compose.yml index 69c780e..1e8224c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -156,6 +156,8 @@ services: VPN_PORT: 443 # ensure correct service instance IP is registered with the API VPN_SERVICE_REGISTER_INTERFACE: eth0 + devices: + - /dev/net/tun # https://github.com/balena-io/open-balena-db db: