Skip to content

ci: update build workflows to use image caching, multi-arch, auto-tag… #28

ci: update build workflows to use image caching, multi-arch, auto-tag…

ci: update build workflows to use image caching, multi-arch, auto-tag… #28

Workflow file for this run

name: Build CI Img
on:
# Push includes PR merge
push:
branches:
- main
- staging
- development
paths:
# Workflow is triggered only if deps change
- "src/backend/pyproject.toml"
- "src/backend/Dockerfile"
# Allow manual trigger
workflow_dispatch:
jobs:
backend-ci-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@main
with:
context: src/backend
build_target: ci
image_tags: |
"ghcr.io/${{ github.repository }}/backend:ci-${{ github.ref_name }}"
build_args: |
APP_VERSION=${{ github.ref_name }}
COMMIT_REF=${{ github.sha }}