Skip to content

Update build workflows to use image caching, multi-arch, auto-tag #45

Update build workflows to use image caching, multi-arch, auto-tag

Update build workflows to use image caching, multi-arch, auto-tag #45

Workflow file for this run

name: PR Test Backend
on:
pull_request:
branches:
- main
- staging
- development
# Workflow is triggered only if src/backend changes
paths:
- src/backend/**
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:
jobs:
pytest:
uses: hotosm/gh-workflows/.github/workflows/test_pytest_compose.yml@main

Check failure on line 17 in .github/workflows/pr_test_backend.yml

View workflow run for this annotation

GitHub Actions / PR Test Backend

Invalid workflow file

The workflow is not valid. In .github/workflows/pr_test_backend.yml (Line: 17, Col: 11): Error from called workflow hotosm/gh-workflows/.github/workflows/test_pytest_compose.yml@main (Line: 7, Col: 22): Unrecognized named-value: 'github'. Located at position 1 within expression: github.repository

Check failure on line 17 in .github/workflows/pr_test_backend.yml

View workflow run for this annotation

GitHub Actions / PR Test Backend

Invalid workflow file

The workflow is not valid. In .github/workflows/pr_test_backend.yml (Line: 17, Col: 11): Error from called workflow hotosm/gh-workflows/.github/workflows/test_pytest_compose.yml@main (Line: 7, Col: 22): Unrecognized named-value: 'github'. Located at position 1 within expression: github.repository

Check failure on line 17 in .github/workflows/pr_test_backend.yml

View workflow run for this annotation

GitHub Actions / PR Test Backend

Invalid workflow file

The workflow is not valid. In .github/workflows/pr_test_backend.yml (Line: 17, Col: 11): Error from called workflow hotosm/gh-workflows/.github/workflows/test_pytest_compose.yml@main (Line: 7, Col: 22): Unrecognized named-value: 'github'. Located at position 1 within expression: github.repository

Check failure on line 17 in .github/workflows/pr_test_backend.yml

View workflow run for this annotation

GitHub Actions / PR Test Backend

Invalid workflow file

The workflow is not valid. .github/workflows/pr_test_backend.yml (Line: 17, Col: 11): Input image_name is required, but not provided while calling. .github/workflows/pr_test_backend.yml (Line: 20, Col: 19): Invalid input, cache_imgs is not defined in the referenced workflow.
with:
docker_compose_service: api
cache_imgs: |
"docker.io/postgis/postgis:${{ vars.POSTGIS_TAG }}"
"docker.io/minio/minio:${{ vars.MINIO_TAG }}"
# For caching odk central images, add:
# "ghcr.io/${{ github.repository }}/odkcentral:${{ vars.ODK_CENTRAL_TAG }}"
# "ghcr.io/${{ github.repository }}/odkcentral-proxy:${{ vars.ODK_CENTRAL_TAG }}"
secrets: inherit