22 lines
562 B
YAML
22 lines
562 B
YAML
on: [push]
|
|
|
|
jobs:
|
|
lint-build:
|
|
runs-on: podman
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run pre-commit checks
|
|
run: |
|
|
pip install pre-commit
|
|
pre-commit run --all-files
|
|
|
|
- name: Build FastAPI image
|
|
run: |
|
|
podman build -t cmmc-fastapi:${{ forgejo.sha }} \
|
|
-f .container-images/fastapi.Dockerfile .
|
|
|
|
# optional push to internal registry:
|
|
# - name: Push image
|
|
# run: podman push cmmc-fastapi:${{ forgejo.sha }} <registry>/<path>:${{ forgejo.sha }}
|