Skip to content

ci: add ci (#16)

ci: add ci (#16) #1

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

View workflow run for this annotation

GitHub Actions / Push & PR to the main branch

Invalid workflow file

The workflow is not valid. .github/workflows/on_push_pr_main.yml (Line: 21, Col: 3): Error calling workflow 'thomas-mauran/LinkedOut/.github/workflows/flow_backend_build_push.yml@63f3437be9ce811b0f6fa55fbd00a20dc38a9a66'. The nested job 'build' is requesting 'packages: write', but is only allowed 'packages: read'.
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