Skip to content

feat(frontend): login and register logic #3

feat(frontend): login and register logic

feat(frontend): login and register logic #3

name: Build (Frontend)
on:
push:
branches:
- main
paths:
- 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to the Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
context: .
file: ./frontend/Dockerfile
push: true
tags: ghcr.io/noah-platform/noah/frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max