Skip to content

chore(deps): bump the npm-minor group across 1 directory with 12 updates #8

chore(deps): bump the npm-minor group across 1 directory with 12 updates

chore(deps): bump the npm-minor group across 1 directory with 12 updates #8

Workflow file for this run

name: CI - Frontend
on:
push:
branches: [main, develop]
paths:
- 'web/**'
- '.github/workflows/ci-frontend.yml'
pull_request:
branches: [main]
paths:
- 'web/**'
env:
NODE_VERSION: '22'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: web/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: ./web
- name: Type Check
run: npm run lint
working-directory: ./web
- name: Build
run: npm run build
working-directory: ./web
env:
NEXT_PUBLIC_API_URL: https://api.zcep.zorlu.com/api
docker:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and Push Frontend Image
uses: docker/build-push-action@v6
with:
context: ./web
push: true
tags: |
${{ secrets.REGISTRY_URL }}/zcep-web:latest
${{ secrets.REGISTRY_URL }}/zcep-web:${{ github.sha }}
build-args: |
NEXT_PUBLIC_API_URL=https://api.zcep.zorlu.com/api
cache-from: type=gha
cache-to: type=gha,mode=max