Skip to content

use toast to notify report #29

use toast to notify report

use toast to notify report #29

Workflow file for this run

name: Staging CI Pipeline
on:
push:
branches:
- staging
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0
- name: Install Dependencies
run: npm install
- name: Build Next.js App
run: npm run build
docker:
runs-on: ubuntu-latest
needs: build
name: Build NextJS docker image
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
target: dev
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/like-minded-fe-staging:latest
build-args: |
NEXT_PUBLIC_API_ENDPOINT=${{ secrets.NEXT_PUBLIC_API_STAGING_ENDPOINT }}
NEXT_PUBLIC_WS_ENDPOINT=${{ secrets.NEXT_PUBLIC_WS_STAGING_ENDPOINT }}
NEXTAUTH_URL=${{ secrets.NEXTAUTH_STAGING_URL }}
NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }}