🔧 Build ODK Images #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🔧 Build ODK Images | |
on: | |
# Push includes PR merge | |
push: | |
branches: | |
- development | |
paths: | |
# Workflow is triggered only if odkcentral dir changes | |
- "odkcentral/**" | |
# Allow manual trigger | |
workflow_dispatch: | |
jobs: | |
build-odkcentral: | |
uses: hotosm/gh-workflows/.github/workflows/[email protected] | |
with: | |
context: odkcentral/api | |
image_tags: | | |
"ghcr.io/${{ github.repository }}/odkcentral:${{ vars.ODK_CENTRAL_TAG }}" | |
"ghcr.io/${{ github.repository }}/odkcentral:latest" | |
extra_build_args: | | |
ODK_CENTRAL_TAG=${{ vars.ODK_CENTRAL_TAG }} | |
build-odkcentral-ui: | |
uses: hotosm/gh-workflows/.github/workflows/[email protected] | |
with: | |
context: odkcentral/ui | |
image_tags: | | |
"ghcr.io/${{ github.repository }}/odkcentral-ui:${{ vars.ODK_CENTRAL_TAG }}" | |
"ghcr.io/${{ github.repository }}/odkcentral-ui:latest" | |
extra_build_args: | | |
ODK_CENTRAL_TAG=${{ vars.ODK_CENTRAL_TAG }} |