Skip to content

Bump python from 3.11.8-slim-bookworm to 3.12.4-slim-bookworm #39

Bump python from 3.11.8-slim-bookworm to 3.12.4-slim-bookworm

Bump python from 3.11.8-slim-bookworm to 3.12.4-slim-bookworm #39

Workflow file for this run

name: Lint and Compile
on:
release:
types:
- created
push:
pull_request:
permissions:
# ghcr.io
packages: write
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/setup-python@v4.5.0
with:
python-version: 3.11
- run: pip install .[dev]
- run: python -m ruff check --output-format=github .
build:
runs-on: ubuntu-22.04
needs:
- lint
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/setup-python@v4.5.0
with:
python-version: 3.11
- uses: justalemon/VersionPatcher@v0.7.1
with:
version: 0.0.1-alpha.${{ github.run_number }}
pyproject-files: "pyproject.toml"
- run: pip install .[dev]
- run: python -m build
- uses: actions/upload-artifact@v3.1.2
with:
name: ${{ github.event.repository.name }}
path: dist/*
docker:
runs-on: ubuntu-22.04
needs:
- build
steps:
- uses: actions/checkout@v4.1.1
- uses: docker/setup-buildx-action@v3.0.0
- uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/metadata-action@v5.2.0
id: meta
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,format=short,prefix=
type=raw,value=latest,enable={{ is_default_branch }}
- uses: docker/build-push-action@v5.1.0
- uses: docker/build-push-action@v5.1.0
if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) == github.ref || startsWith(github.ref, 'refs/tags/') }}
with:
push: true
tags: ${{ steps.meta.outputs.tags }}