From 09a1fc9a42b2010814ab2ec8fa16cf0a264e1ce5 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 23 Apr 2025 22:20:59 +0000 Subject: [PATCH 1/6] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} From 817689a975e8cc5ab506a14f2bc2655e8c0a1977 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 23 Apr 2025 18:01:18 +0200 Subject: [PATCH 2/6] test drone --- .drone.yml | 106 ++++++++++++++++++++++++++--------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2017f32..103341a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,62 +3,62 @@ type: docker name: default services: - - name: postgres - image: docker.io/library/postgres:17.2 - environment: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres + - name: postgres + image: docker.io/library/postgres:17.2 + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres trigger: - event: - - push + event: + - push steps: - - name: check - image: docker.io/library/elixir:1.18.3-otp-27 - commands: - # Install hex package manager - - mix local.hex --force - # Fetch dependencies - - mix deps.get - # Check for compilation errors & warnings - - mix compile --warnings-as-errors - # Check formatting - - mix format --check-formatted - # Security checks - - mix sobelow --config - # Check dependencies for known vulnerabilities - - mix deps.audit - # Check for dependencies that are not maintained anymore - - mix hex.audit - # Provide hints for improving code quality - - mix credo + - name: check + image: docker.io/library/elixir:1.18.3-otp-27 + commands: + # Install hex package manager + - mix local.hex --force + # Fetch dependencies + - mix deps.get + # Check for compilation errors & warnings + - mix compile --warnings-as-errors + # Check formatting + - mix format --check-formatted + # Security checks + - mix sobelow --config + # Check dependencies for known vulnerabilities + - mix deps.audit + # Check for dependencies that are not maintained anymore + - mix hex.audit + # Provide hints for improving code quality + - mix credo - - name: wait_for_postgres - image: docker.io/library/postgres:17.2 - commands: - # Wait for postgres to become available - - | - for i in {1..20}; do - if pg_isready -h postgres -U postgres; then - exit 0 - else - true - fi - sleep 2 - done - echo "Postgres did not become available, aborting." - exit 1 + - name: wait_for_postgres + image: docker.io/library/postgres:17.2 + commands: + # Wait for postgres to become available + - | + for i in {1..20}; do + if pg_isready -h postgres -U postgres; then + exit 0 + else + true + fi + sleep 2 + done + echo "Postgres did not become available, aborting." + exit 1 - - name: test - image: docker.io/library/elixir:1.18.3-otp-27 - environment: - MIX_ENV: test - TEST_POSTGRES_HOST: postgres - commands: - # Install hex package manager - - mix local.hex --force - # Fetch dependencies - - mix deps.get - # Run tests - - mix test + - name: test + image: docker.io/library/elixir:1.18.3-otp-27 + environment: + MIX_ENV: test + TEST_POSTGRES_HOST: postgres + commands: + # Install hex package manager + - mix local.hex --force + # Fetch dependencies + - mix deps.get + # Run tests + - mix test From 25eaf9443237ee02870ac8b0cdcc25343b866bf2 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 23 Apr 2025 18:03:46 +0200 Subject: [PATCH 3/6] another drone test --- .drone.yml | 106 ++++++++++++++++++++++++++--------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/.drone.yml b/.drone.yml index 103341a..2017f32 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,62 +3,62 @@ type: docker name: default services: - - name: postgres - image: docker.io/library/postgres:17.2 - environment: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres + - name: postgres + image: docker.io/library/postgres:17.2 + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres trigger: - event: - - push + event: + - push steps: - - name: check - image: docker.io/library/elixir:1.18.3-otp-27 - commands: - # Install hex package manager - - mix local.hex --force - # Fetch dependencies - - mix deps.get - # Check for compilation errors & warnings - - mix compile --warnings-as-errors - # Check formatting - - mix format --check-formatted - # Security checks - - mix sobelow --config - # Check dependencies for known vulnerabilities - - mix deps.audit - # Check for dependencies that are not maintained anymore - - mix hex.audit - # Provide hints for improving code quality - - mix credo + - name: check + image: docker.io/library/elixir:1.18.3-otp-27 + commands: + # Install hex package manager + - mix local.hex --force + # Fetch dependencies + - mix deps.get + # Check for compilation errors & warnings + - mix compile --warnings-as-errors + # Check formatting + - mix format --check-formatted + # Security checks + - mix sobelow --config + # Check dependencies for known vulnerabilities + - mix deps.audit + # Check for dependencies that are not maintained anymore + - mix hex.audit + # Provide hints for improving code quality + - mix credo - - name: wait_for_postgres - image: docker.io/library/postgres:17.2 - commands: - # Wait for postgres to become available - - | - for i in {1..20}; do - if pg_isready -h postgres -U postgres; then - exit 0 - else - true - fi - sleep 2 - done - echo "Postgres did not become available, aborting." - exit 1 + - name: wait_for_postgres + image: docker.io/library/postgres:17.2 + commands: + # Wait for postgres to become available + - | + for i in {1..20}; do + if pg_isready -h postgres -U postgres; then + exit 0 + else + true + fi + sleep 2 + done + echo "Postgres did not become available, aborting." + exit 1 - - name: test - image: docker.io/library/elixir:1.18.3-otp-27 - environment: - MIX_ENV: test - TEST_POSTGRES_HOST: postgres - commands: - # Install hex package manager - - mix local.hex --force - # Fetch dependencies - - mix deps.get - # Run tests - - mix test + - name: test + image: docker.io/library/elixir:1.18.3-otp-27 + environment: + MIX_ENV: test + TEST_POSTGRES_HOST: postgres + commands: + # Install hex package manager + - mix local.hex --force + # Fetch dependencies + - mix deps.get + # Run tests + - mix test From 00e56ec2543cc25bdd779e47a6d349f8d3ac0051 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 23 Apr 2025 23:41:07 +0200 Subject: [PATCH 4/6] test renovate --- .drone.yml | 32 +++++++++++++++++++++++++++++++- config.js | 16 ++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 config.js diff --git a/.drone.yml b/.drone.yml index 2017f32..3e5c673 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,16 @@ +--- kind: pipeline type: docker -name: default +name: renovate + +trigger: + event: + - cron + - push + - custom + +environment: + LOG_LEVEL: debug services: - name: postgres @@ -62,3 +72,23 @@ steps: - mix deps.get # Run tests - mix test + + - name: renovate - validate config + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - renovate-config-validator + + - name: renovate + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - renovate + + environment: + RENOVATE_TOKEN: + from_secret: RENOVATE_TOKEN + #GITHUB_COM_TOKEN: + # from_secret: GITHUB_COM_TOKEN diff --git a/config.js b/config.js new file mode 100644 index 0000000..3efb6cf --- /dev/null +++ b/config.js @@ -0,0 +1,16 @@ +module.exports = { + endpoint: "https://git.local-it.org/api/v1/", + gitAuthor: 'Renovate Bot ', + username: 'renovate', + platform: "gitea", + onboarding: true, + autodiscover: true, + persistRepoData: true, + optimizeForDisabled: true, + assignees: [], + labels: ["renovate", "dependencies", "automated"], + onboardingConfig: { + extends: ["config:recommended"], + }, + repositories: ["local-it/mitgliederverwaltung"] +}; From 20fb88bb4509ad625b54e84b54a38b7e5c011deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Eppl=C3=A9e?= Date: Wed, 30 Apr 2025 15:56:36 +0200 Subject: [PATCH 5/6] move renovate config --- .drone.yml | 24 ++++++++++++------------ config.js => renovate_config.js | 0 2 files changed, 12 insertions(+), 12 deletions(-) rename config.js => renovate_config.js (100%) diff --git a/.drone.yml b/.drone.yml index 3e5c673..17b5ca1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,13 +4,13 @@ type: docker name: renovate trigger: - event: - - cron - - push - - custom + event: + - cron + - push + - custom environment: - LOG_LEVEL: debug + LOG_LEVEL: debug services: - name: postgres @@ -78,17 +78,17 @@ steps: # https://github.com/renovatebot/renovate/discussions/15049 commands: - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL - - renovate-config-validator + - RENOVATE_CONFIG_FILE="renovate_config.js" renovate-config-validator - name: renovate image: renovate/renovate:39.256 # https://github.com/renovatebot/renovate/discussions/15049 commands: - - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL - - renovate + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - RENOVATE_CONFIG_FILE="renovate_config.js" renovate environment: - RENOVATE_TOKEN: - from_secret: RENOVATE_TOKEN - #GITHUB_COM_TOKEN: - # from_secret: GITHUB_COM_TOKEN + RENOVATE_TOKEN: + from_secret: RENOVATE_TOKEN + #GITHUB_COM_TOKEN: + # from_secret: GITHUB_COM_TOKEN diff --git a/config.js b/renovate_config.js similarity index 100% rename from config.js rename to renovate_config.js From 520aad24dde0fa5c30192dc12d58bb698663fe7f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 23 Apr 2025 22:20:59 +0000 Subject: [PATCH 6/6] configure renovate --- .drone.yml | 32 +++++++++++++++++++++++++++++++- renovate.json | 6 ++++++ renovate_config.js | 16 ++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 renovate.json create mode 100644 renovate_config.js diff --git a/.drone.yml b/.drone.yml index 2017f32..17b5ca1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,16 @@ +--- kind: pipeline type: docker -name: default +name: renovate + +trigger: + event: + - cron + - push + - custom + +environment: + LOG_LEVEL: debug services: - name: postgres @@ -62,3 +72,23 @@ steps: - mix deps.get # Run tests - mix test + + - name: renovate - validate config + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - RENOVATE_CONFIG_FILE="renovate_config.js" renovate-config-validator + + - name: renovate + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - RENOVATE_CONFIG_FILE="renovate_config.js" renovate + + environment: + RENOVATE_TOKEN: + from_secret: RENOVATE_TOKEN + #GITHUB_COM_TOKEN: + # from_secret: GITHUB_COM_TOKEN diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} diff --git a/renovate_config.js b/renovate_config.js new file mode 100644 index 0000000..3efb6cf --- /dev/null +++ b/renovate_config.js @@ -0,0 +1,16 @@ +module.exports = { + endpoint: "https://git.local-it.org/api/v1/", + gitAuthor: 'Renovate Bot ', + username: 'renovate', + platform: "gitea", + onboarding: true, + autodiscover: true, + persistRepoData: true, + optimizeForDisabled: true, + assignees: [], + labels: ["renovate", "dependencies", "automated"], + onboardingConfig: { + extends: ["config:recommended"], + }, + repositories: ["local-it/mitgliederverwaltung"] +};