name: Build image

# 4.x is the production line we ship to the Charlie/monica stack.
# `main` upstream tracks monica v5 which isn't deployed; pushes there
# are intentionally not built.

on:
  push:
    branches: ["4.x"]
  workflow_dispatch:

jobs:
  build:
    uses: https://${{ github.repository_owner }}:${{ secrets.CALLER_REPO_PAT }}@gitea.alexandru.macocian.me/Charlie/project-charlie/.gitea/workflows/build-image.yml@main
    with:
      host: melina
      dockerfile: scripts/docker/Dockerfile
    secrets: inherit
