Remove renovate workflow and integrate docker build #10

Merged
official-Cromatin merged 7 commits from feat-vscode-tasks into main 2025-12-08 14:44:05 +01:00
8 changed files with 62 additions and 62 deletions
-13
View File
@@ -1,13 +0,0 @@
#!/bin/bash
set -euo pipefail
echo "=== Starting Renovate Bot ==="
cd /github/workspace
apt update
apt install -y build-essential libpq-dev
runuser -u ubuntu -- renovate --platform=github
echo "=== Renovate Bot finished ==="
+15
View File
@@ -0,0 +1,15 @@
name: Code Analysis (Bandit)
on: push
jobs:
bandit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mdegis/bandit-action@v1.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: "src/"
level: high
confidence: high
exit_zero: true
+1 -1
View File
@@ -10,7 +10,7 @@ permissions:
jobs: jobs:
build-and-push-docker: build-and-push-docker:
runs-on: self-hosted runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
-33
View File
@@ -1,33 +0,0 @@
name: Renovate
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 1'
permissions:
contents: write
pull-requests: write
jobs:
renovate:
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install Renovate
run: npm install -g renovate
- name: Run Renovate
env:
RENOVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LOG_LEVEL: debug
run: |
cd ${{ github.workspace }}
renovate --platform=github --repositories "${{ github.repository }}"
+9
View File
@@ -0,0 +1,9 @@
name: Linting (Ruff)
on: [push, pull_request]
jobs:
ruff:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
+1 -1
View File
@@ -5,7 +5,7 @@ pastebin.txt
.DS_Store .DS_Store
test*.py test*.py
docker-* docker-*
.vscode .vscode/settings.json
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
+36
View File
@@ -0,0 +1,36 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Docker: Build Image",
"type": "docker-build",
"platform": "python",
"dockerBuild": {
"context": "${workspaceFolder}",
"dockerfile": "${workspaceFolder}/Dockerfile",
"tag": "post-it:dev"
}
},
{
"label": "Run post-it (interactive, show logs)",
"type": "shell",
"dependsOn": ["Docker: Build Image"],
"command": "docker",
"args": [
"run",
"--rm",
"-it",
"--name",
"post-it-dev",
"-v",
"${workspaceFolder}/config:/app/config",
"post-it:dev"
],
"presentation": {
"reveal": "always",
"panel": "shared"
},
"problemMatcher": []
}
]
}
-14
View File
@@ -1,14 +0,0 @@
{
"extends": ["config:base"],
"labels": ["dependencies", "renovate"],
"packageRules": [
{
"managers": ["pip_requirements"],
"updateTypes": ["minor", "patch"],
"automerge": false,
"groupName": "Python dependencies"
}
],
"prConcurrentLimit": 5,
"prHourlyLimit": 2
}