[Snyk] Security upgrade next from 13.1.6 to 14.2.7 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Landing page 🏗️ | |
on: | |
pull_request: | |
branches: ["develop"] | |
paths: [ | |
"frontend/occupi/**", | |
".github/workflows/build-landing-page.yml" | |
] | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: frontend/occupi | |
jobs: | |
# Build job | |
build-test: | |
name: 🏗️ Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: 📦 Install dependencies with node | |
run: npm install | |
- name: 🚀 Build with Next.js | |
run: npm run build | |
# test docker build and up the container then down | |
build-test-docker: | |
name: 🐋 Build Test Docker Container | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout code | |
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: 🐳 Build Docker image | |
run: | | |
docker build --no-cache -t ${{ secrets.DOCKER_USERNAME }}/occupi:latest . | |
- name: ✅ Echo success message | |
run: echo "Docker build successful" |