Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: website #166

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
// "features": {},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm i -g pnpm@9.9.0 && npm i",
"postCreateCommand": "npm i -g pnpm@9.9.0 turbo@latest && pnpm i",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"Vue.volar",
"ms-azuretools.vscode-docker",
Expand Down
19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

Empty file added .github/renovate.json
Empty file.
103 changes: 0 additions & 103 deletions .github/workflows/api-docker.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
paths-ignore:
- ".md"
branches:
- main
pull_request:
paths-ignore:
- "*.md"
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: true

- name: Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: ESLint
run: pnpm run lint

- name: Types
run: pnpm run typecheck

- name: Build
run: pnpm run build
86 changes: 0 additions & 86 deletions .github/workflows/command-center-docker.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/credits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Contributor Credits

on:
schedule:
- cron: '0 1 * * 0' # At 01:00 on Sunday.
workflow_dispatch:

jobs:
contributors:
runs-on: ubuntu-latest
steps:
- name: Update Contributors
uses: wow-actions/contributors-list@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
svgPath: .github/static/contributors.svg
affiliation: all
includeBots: false
avatarSize: 96
userNameHeight: 20
svgWidth: 830
commitMessage: 'chore: update contributors'
63 changes: 63 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build and Push Docker

on:
release:
types:
- created
push:
paths-ignore:
- '.md'
branches:
- main

env:
CONTAINER_NAMESPACE: ghcr.io/next-orders

jobs:
build-and-push:
strategy:
fail-fast: false
matrix:
package: [website]
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Github Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build ${{ matrix.package }}
uses: docker/build-push-action@v6
with:
context: .
build-args: VERSION=nightly
file: ./docker/${{ matrix.package }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.CONTAINER_NAMESPACE }}/${{ matrix.package }}:nightly
cache-from: type=registry,ref=${{ env.CONTAINER_NAMESPACE }}/build-cache:${{ matrix.package }}
cache-to: type=registry,mode=max,ref=${{ env.CONTAINER_NAMESPACE }}/build-cache:${{ matrix.package }}

- name: Build ${{ matrix.package }} (release)
uses: docker/build-push-action@v6
if: github.event_name == 'release'
with:
context: .
build-args: VERSION=${{ github.event.release.name }}
file: ./docker/${{ matrix.package }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.CONTAINER_NAMESPACE }}/${{ matrix.package }}:${{ github.event.release.name }},${{ env.CONTAINER_NAMESPACE }}/${{ matrix.package }}:latest
cache-from: type=registry,ref=${{ env.CONTAINER_NAMESPACE }}/build-cache:${{ matrix.package }}
cache-to: type=registry,mode=max,ref=${{ env.CONTAINER_NAMESPACE }}/build-cache:${{ matrix.package }}
Loading
Loading