Skip to content

Commit

Permalink
Merge branch 'main' into restruct
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuszik authored Oct 6, 2024
2 parents d0bdff8 + c5ebf11 commit 738c716
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
updates:
# Update Python packages
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10

# Update GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10

# Update Docker base images
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
8 changes: 4 additions & 4 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -39,7 +39,7 @@ jobs:
type=ref,event=branch,pattern={{branch}},prefix=branch-,sanitize=true
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
name: Lint
on: [push, pull_request]
on:
push:
branches-ignore: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest

steps:
permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
uses: github/super-linter@v7
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_HTML: true
FIX_PYTHON_RUFF: true
VALIDATE_PYTHON_RUFF: true
VALIDATE_MARKDOWN_PRETTIER : true
VALIDATE_MARKDOWN_PRETTIER: true
VALIDATE_GITLEAKS: true
VALIDATE_GITHUB_ACTIONS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.12-slim

# Environment variables to optimize Python behavior
ENV PYTHONDONTWRITEBYTECODE=1
Expand Down

0 comments on commit 738c716

Please sign in to comment.