-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
πͺ’ Merge #6 (staging β dev): Initialize Next.js boilerplate. Add metadata
- Loading branch information
Showing
29 changed files
with
6,230 additions
and
5 deletions.
There are no files selected for viewing
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
# # `deploy.yaml` | ||
# client | Semantyk | ||
# | ||
# Created: Nov 29, 2023 | ||
# Modified: Nov 29, 2023 | ||
# | ||
# Author(s): Semantyk Team | ||
# Maintainer(s): Daniel Bakas <https://id.danielbakas.com> | ||
# | ||
# Copyright Β© Semantyk 2023. All rights reserved. | ||
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
|
||
name: Deploy to Google App Engine | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- staging | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# 1. Checkout the Repository | ||
- name: Repository Checkout | ||
uses: actions/checkout@v4 | ||
# 2. Setup Google Cloud SDK | ||
- name: Cloud SDK Configuration | ||
uses: google-github-actions/setup-gcloud@v1 | ||
# 3. Authenticate with Google Cloud | ||
- name: GCP Authentication | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{secrets.GCP_CREDENTIALS}} | ||
# 4. Deploy to Google App Engine | ||
# Deployment to 'main' service | ||
- name: Deploy to Main Service | ||
if: github.ref == 'refs/heads/main' | ||
run: gcloud app deploy app.yaml --project ${{secrets.GCP_PROJECT_ID}} --promote --version main | ||
# Deployment to 'staging' service | ||
- name: Deploy to Staging Service | ||
if: github.ref == 'refs/heads/staging' | ||
run: gcloud app deploy app.yaml --project ${{secrets.GCP_PROJECT_ID}} --no-promote --version staging |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
# # `test.yaml` | ||
# client | Semantyk | ||
# | ||
# Created: Nov 29, 2023 | ||
# Modified: Nov 29, 2023 | ||
# | ||
# Author(s): Semantyk Team | ||
# Maintainer(s): Daniel Bakas <https://id.danielbakas.com> | ||
# | ||
# Copyright Β© Semantyk 2023. All rights reserved. | ||
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
|
||
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [ 20.10.0 ] | ||
steps: | ||
# 1. Checkout the Repository | ||
- uses: actions/checkout@v4 | ||
name: 1. Repository Checkout | ||
# 2. Setup pnpm | ||
- uses: pnpm/action-setup@v2 | ||
name: 2. Setup pnpm | ||
with: | ||
version: 8 | ||
# 3. Setup Node.js | ||
- uses: actions/setup-node@v4 | ||
name: 3. Setup Node.js (v${{ matrix.node-version }}) | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
# 4. Install Dependencies | ||
- run: pnpm install | ||
name: 4. Install Dependencies | ||
# 5. Build | ||
- run: pnpm run build | ||
name: 5. Build | ||
# 6. Test | ||
- run: pnpm test | ||
name: 6. Test |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Authors | ||
|
||
### [client](https://client.github.semantyk.com) | [Semantyk](https://www.semantyk.com) | ||
|
||
This file lists all individuals having contributed content to the project. | ||
|
||
* **Created:** Nov 28, 2023 | ||
* **Modified:** Nov 28, 2023 | ||
* **Author(s):** [Semantyk Team](https://github.com/orgs/semantyk/people) | ||
* **Maintainer(s):** [Daniel Bakas](https://id.danielbakas.com) | ||
|
||
## Our Team | ||
|
||
| Name | GitHub Username | Role | WebID | Mail | | ||
|:-----------------------------------------------|:-------------------------------------------------------|:--------|:----------------------------------------------------------------------|:---------------------------------------------------------------| | ||
| [**Daniel Bakas**](https://id.danielbakas.com) | <a href="https://github.danielbakas.com">`danielbakas` | Founder | <a href="https://id.danielbakas.com">`https://id.danielbakas.com`</a> | <a href="mailto:[email protected]">`[email protected]`</a> | | ||
|
||
--- | ||
*Copyright Β© [Semantyk](https://www.semantyk.com/) 2023. All rights reserved.* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
# # `Dockerfile` | ||
# client | Semantyk | ||
# | ||
# Created: Nov 30, 2023 | ||
# Modified: Nov 30, 2023 | ||
# | ||
# Author(s): Semantyk Team | ||
# Maintainer(s): Daniel Bakas <https://id.danielbakas.com> | ||
# | ||
# Copyright Β© Semantyk 2023. All rights reserved. | ||
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | ||
|
||
# Stage 1: Build the application | ||
# Use Node.js Image | ||
FROM node:alpine AS builder | ||
# Install pnpm | ||
RUN npm install -g pnpm | ||
# Set the working directory | ||
WORKDIR /app | ||
# Copy package.json and other related files | ||
COPY package.json pnpm-lock.yaml ./ | ||
# Install dependencies | ||
RUN pnpm install | ||
# Copy the rest of your app's source code | ||
COPY . . | ||
# Build the Next.js app | ||
RUN pnpm run build | ||
|
||
# Stage 2: Production environment | ||
# Use Node.js Image | ||
FROM node:alpine | ||
# Set the working directory | ||
WORKDIR /usr/src/app | ||
# Copy related files | ||
COPY --from=builder /app/next.config.js ./ | ||
COPY --from=builder /app/public ./public | ||
COPY --from=builder /app/.next ./.next | ||
COPY --from=builder /app/node_modules ./node_modules | ||
# Expose port 3000 | ||
EXPOSE 3000 |
Oops, something went wrong.