Compare commits

..
Author SHA1 Message Date
Daniel-Garmig ceb444071a Add Gitea Actions Support:
Publish_on_Tag / Docker Lint (push) Has been cancelled
Publish_on_Tag / Build and Push (push) Has been cancelled
- Build and publish on tag.
2024-05-11 22:41:41 +02:00
6 changed files with 18 additions and 38 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# App config Variables (Will be visible by client):
VITE_BACKEND_HOST=${SOMNIA_BACKEND_HOST:-https://somniaapi.example.org/}
VITE_BACKEND_PORT=${SOMNIA_BACKEND_PORT:-443}
VITE_BACKEND_HOST=https://somniaapi.example.org/
VITE_BACKEND_PORT=443
-23
View File
@@ -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]
+10 -9
View File
@@ -18,11 +18,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -38,8 +33,14 @@ jobs:
with:
context: .
push: true
tags: ${{vars.REGISTRY_INSTANCE}}/daniel-garmig/somniaroomsapp:devbuild
tags: daniel-garmig/somniaroomsapp:devbuild
target: final-prod
platforms: linux/amd64,linux/arm64
secrets: |
GIT_AUTH_TOKEN=${{secrets.REGISTRY_TOKEN}}
lint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/[email protected]
+2 -1
View File
@@ -14,7 +14,8 @@ CMD ["npm", "run", "dev"]
# Build app for production.
FROM app-base as builder
RUN npm ci && npm run build
RUN npm ci
RUN npm run build
# production environment
FROM nginx:stable-alpine as final-prod
+3 -2
View File
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import * as React from "react"
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons"
import { DayPicker } from "react-day-picker"
@@ -58,8 +59,8 @@ function Calendar({
...classNames,
}}
components={{
IconLeft: () => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: () => <ChevronRightIcon className="h-4 w-4" />,
IconLeft: ({ ...props }) => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: ({ ...props }) => <ChevronRightIcon className="h-4 w-4" />,
}}
{...props}
/>