ci: add ci (#16) #1
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: Push & PR to the main branch | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
jobs: | ||
lint_frontend: | ||
name: Lint frontend | ||
uses: ./.github/workflows/flow_front_lint.yml | ||
lint_backend: | ||
name: Lint backend | ||
uses: ./.github/workflows/flow_backend_lint.yml | ||
build_api_gateway: | ||
Check failure on line 21 in .github/workflows/on_push_pr_main.yml GitHub Actions / Push & PR to the main branchInvalid workflow file
|
||
name: Build & push Docker image of the API gateway | ||
needs: lint_backend | ||
uses: ./.github/workflows/flow_backend_build_push.yml | ||
with: | ||
service-name: api_gateway | ||
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 |