Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci,docker): Renovate config updated + config linter added; CI updated #81

Merged
merged 3 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.git
.github
.venv
.dockerignore
.gitignore
.editorconfig
README.md
LICENSE
## Ignore everything
*

## Except the following files and directories
!/requirements.txt
10 changes: 3 additions & 7 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:recommended",
":disableDependencyDashboard",
":semanticCommitType(chore)"
],
"assignees": [
"jetexe"
],
"labels": [
"dependencies"
]
"assignees": ["jetexe"],
"labels": ["dependencies"]
}
7 changes: 5 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: labeler
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

name: 🏷 Labeler

on: [pull_request_target]

jobs:
triage:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5 # Action page: <https://github.com/actions/labeler>
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: release
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

name: 🚀 Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: tests
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

name: 🧪 Tests

on:
push:
Expand All @@ -11,27 +14,34 @@ on:
jobs:
gitleaks:
name: GitLeaks
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Install Dasel
run: curl -sSLf "$(curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/tags/v1.27.3 | grep browser_download_url | grep linux_amd64 | grep -v .gz | cut -d\" -f 4)" -L -o dasel && chmod +x dasel

- name: Patch GitLeaks config
run: |
wget -P /tmp https://raw.githubusercontent.com/zricethezav/gitleaks/master/config/gitleaks.toml
./dasel put string -f /tmp/gitleaks.toml ".rules.(id=generic-api-key).allowlist.commits.[]" "e8594f63837f77f5d5b4ad21e82dfc6c9fd6b288"
./dasel put string -f /tmp/gitleaks.toml ".rules.(id=generic-api-key).allowlists.[].commits.[]" "e8594f63837f77f5d5b4ad21e82dfc6c9fd6b288"

- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- { uses: actions/checkout@v4, with: { fetch-depth: 0 } }

- name: Check for GitLeaks
uses: gacts/gitleaks@v1 # Action page: <https://github.com/gacts/gitleaks>
with:
config-path: /tmp/gitleaks.toml

validate-renovate-config:
name: Validate Renovate Config
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npx --yes --package renovate -- renovate-config-validator --strict ./.github/renovate.json

docker-image:
name: Build and scan the docker image
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
services:
registry:
image: registry:2
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# syntax=docker/dockerfile:1

# Python base image <https://hub.docker.com/_/python>
FROM python:3.13.1-alpine
FROM docker.io/library/python:3.13.1-alpine

# cookiecutter works with current working
WORKDIR /workdir
Expand Down
Loading