forked from Somnia/SomniaRoomsApp
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ceb444071a |
@@ -1,3 +1,3 @@
|
|||||||
# App config Variables (Will be visible by client):
|
# App config Variables (Will be visible by client):
|
||||||
VITE_BACKEND_HOST=${SOMNIA_BACKEND_HOST:-https://somniaapi.example.org/}
|
VITE_BACKEND_HOST=https://somniaapi.example.org/
|
||||||
VITE_BACKEND_PORT=${SOMNIA_BACKEND_PORT:-443}
|
VITE_BACKEND_PORT=443
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request: ~
|
|
||||||
workflow_dispatch: ~
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
lint:
|
|
||||||
name: Docker Lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Lint Dockerfile
|
|
||||||
uses: hadolint/[email protected]
|
|
||||||
@@ -18,11 +18,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
with:
|
|
||||||
platforms: arm64
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
@@ -38,8 +33,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: ${{vars.REGISTRY_INSTANCE}}/daniel-garmig/somniaroomsapp:devbuild
|
tags: daniel-garmig/somniaroomsapp:devbuild
|
||||||
target: final-prod
|
target: final-prod
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
secrets: |
|
lint:
|
||||||
GIT_AUTH_TOKEN=${{secrets.REGISTRY_TOKEN}}
|
name: Docker Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Lint Dockerfile
|
||||||
|
uses: hadolint/[email protected]
|
||||||
|
|||||||
+2
-1
@@ -14,7 +14,8 @@ CMD ["npm", "run", "dev"]
|
|||||||
|
|
||||||
# Build app for production.
|
# Build app for production.
|
||||||
FROM app-base as builder
|
FROM app-base as builder
|
||||||
RUN npm ci && npm run build
|
RUN npm ci
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
# production environment
|
# production environment
|
||||||
FROM nginx:stable-alpine as final-prod
|
FROM nginx:stable-alpine as final-prod
|
||||||
|
|||||||
@@ -30,4 +30,4 @@ docker build -t somniarooms-app:prod --target final-prod .
|
|||||||
**Docker Run**
|
**Docker Run**
|
||||||
```
|
```
|
||||||
docker run -d -it -p 8080:80 --name somniarooms-app somniarooms-app:prod
|
docker run -d -it -p 8080:80 --name somniarooms-app somniarooms-app:prod
|
||||||
```
|
```
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons"
|
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons"
|
||||||
import { DayPicker } from "react-day-picker"
|
import { DayPicker } from "react-day-picker"
|
||||||
@@ -58,8 +59,8 @@ function Calendar({
|
|||||||
...classNames,
|
...classNames,
|
||||||
}}
|
}}
|
||||||
components={{
|
components={{
|
||||||
IconLeft: () => <ChevronLeftIcon className="h-4 w-4" />,
|
IconLeft: ({ ...props }) => <ChevronLeftIcon className="h-4 w-4" />,
|
||||||
IconRight: () => <ChevronRightIcon className="h-4 w-4" />,
|
IconRight: ({ ...props }) => <ChevronRightIcon className="h-4 w-4" />,
|
||||||
}}
|
}}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user