Files
linux-odyssey/.github/workflows/build.yml
T
wancat 7d25c7efaa feat: update workflows
* build images with automatic tags
* separate staging and production deployment
* reuse workflows
2023-11-18 18:05:42 +08:00

33 lines
766 B
YAML

name: Build
on:
workflow_call:
jobs:
build-backend:
uses: ./.github/workflows/build-docker-image.yml
with:
imageName: 'linuxodyssey/backend'
dockerfilePath: './server/Dockerfile'
target: prod
build-frontend:
uses: ./.github/workflows/build-docker-image.yml
with:
imageName: 'linuxodyssey/frontend'
dockerfilePath: './app/Dockerfile'
target: prod
build-analytics:
uses: ./.github/workflows/build-docker-image.yml
with:
imageName: 'linuxodyssey/analytics'
dockerfilePath: './packages/analytics/Dockerfile'
target: prod
build-base:
uses: ./.github/workflows/build-docker-image.yml
with:
imageName: 'linuxodyssey/base'
dockerfilePath: './quests/Dockerfile'