Skip to content

feat: Better application #13

feat: Better application

feat: Better application #13

Workflow file for this run

---
name: build
# ---------------
# Control secrets
# ---------------
#
# At the GitHub 'organisation' or 'project' level you are expected to
# have the following GitHub 'Repository Secrets' defined
# (i.e. via 'Settings -> Secrets'): -
#
# (none)
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# (none)
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v5
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Run pre-commit (all files)
run: |
pip install --no-cache-dir poetry=='1.8.5'
poetry install --no-root --no-directory --with dev
poetry run pre-commit run --all-files
- name: Docker build
uses: docker/build-push-action@v6
with:
context: .
tags: ${{ github.repository_owner }}/squonk2-fastapi-ws-event-stream:${{ env.GITHUB_REF_SLUG }}