Skip to content

Merge branch 'main' of https://github.com/hotosm/fmtm #11

Merge branch 'main' of https://github.com/hotosm/fmtm

Merge branch 'main' of https://github.com/hotosm/fmtm #11

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:
extract-vars:
uses: ./.github/workflows/r-extract_vars.yml
backend-ci-build:
uses: hotosm/gh-workflows/.github/workflows/image_build.yml@main
needs: [extract-vars]
with:
context: src/backend
dockerfile: src/backend/Dockerfile
build_target: ci
image_tags: |
"ghcr.io/hotosm/fmtm/backend:${{ needs.extract-vars.outputs.api_version }}-ci-${{ github.ref_name }}"
"ghcr.io/hotosm/fmtm/backend:ci-${{ github.ref_name }}"
build_args: |
APP_VERSION=${{ needs.extract-vars.outputs.api_version }}