Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions .github/workflows/on_push_pr_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,17 @@ jobs:
if: ${{ needs.detect_changes.outputs.backend == 'true' }}
uses: ./.github/workflows/flow_backend_lint.yml

build_api_gateway:
name: Build & push Docker image of the API gateway
build_push_backend:
name: Build & push Docker image of the "${{ matrix.service }}" service
needs: lint_backend
uses: ./.github/workflows/flow_backend_build_push.yml
strategy:
matrix:
service: [api_gateway, jobs]
with:
service-name: api_gateway
service-name: ${{ matrix.service }}
push-image: ${{ github.event_name != 'pull_request' }}
image-tags: |
type=sha
type=ref,event=branch
type=edge,branch=main

build_jobs_service:
name: Build & push Docker image of the Jobs service
needs: lint_backend
uses: ./.github/workflows/flow_backend_build_push.yml
with:
service-name: jobs
push-image: ${{ github.event_name != 'pull_request' }}
image-tags: |
type=sha
type=ref,event=branch
type=edge
20 changes: 6 additions & 14 deletions .github/workflows/on_semver_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@ on:
- v*.*.*

jobs:
build_api_gateway:
name: Build & push Docker image of the API gateway
build_push_backend:
name: Build & push Docker image of the "${{ matrix.service }}" service
uses: ./.github/workflows/flow_backend_build_push.yml
strategy:
matrix:
service: [api_gateway, jobs]
with:
service-name: api_gateway
push-image: ${{ github.event_name != 'pull_request' }}
image-tags: |
type=sha
type=semver,pattern={{version}}
type=raw,value=latest

build_jobs_service:
name: Build & push Docker image of the Jobs service
uses: ./.github/workflows/flow_backend_build_push.yml
with:
service-name: jobs
service-name: ${{ matrix.service }}
push-image: ${{ github.event_name != 'pull_request' }}
image-tags: |
type=sha
Expand Down