Skip to content

build(deps): bump @prisma/client from 6.19.3 to 7.8.0 #106

build(deps): bump @prisma/client from 6.19.3 to 7.8.0

build(deps): bump @prisma/client from 6.19.3 to 7.8.0 #106

Workflow file for this run

name: Release - Build, Scan, and Push Docker Images
on:
pull_request:
branches: [master, main]
push:
branches: [master, main]
workflow_dispatch:
jobs:
build-scan:
name: Build & Scan (${{ matrix.image_name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image_name: api
dockerfile: apps/api/Dockerfile
build_args: ""
- image_name: web
dockerfile: apps/web/Dockerfile
build_args: |
NEXT_PUBLIC_API_URL=/api
- image_name: bot
dockerfile: apps/bot/Dockerfile
build_args: ""
permissions:
contents: read
packages: write
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to GHCR (push only)
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set lowercase repo name
id: repo
run: echo "name=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
- name: Build ${{ matrix.image_name }} image
uses: docker/build-push-action@v7
with:
context: .
file: ${{ matrix.dockerfile }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: ${{ github.event_name == 'pull_request' }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ matrix.build_args }}
tags: |
ghcr.io/${{ steps.repo.outputs.name }}-${{ matrix.image_name }}:latest
ghcr.io/${{ steps.repo.outputs.name }}-${{ matrix.image_name }}:${{ github.sha }}
- name: Scan ${{ matrix.image_name }} image
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: ghcr.io/${{ steps.repo.outputs.name }}-${{ matrix.image_name }}:${{ github.sha }}
format: sarif
output: trivy-${{ matrix.image_name }}.sarif
severity: CRITICAL,HIGH
exit-code: "0"
- name: Upload Trivy results
if: always() && hashFiles(format('trivy-{0}.sarif', matrix.image_name)) != ''
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: trivy-${{ matrix.image_name }}.sarif
category: ${{ matrix.image_name }}