Compare commits

..
Author SHA1 Message Date
Daniel-Garmig 159ee1b004 Gitea Actions Support - Part 2 2024-05-12 02:21:05 +02:00
Daniel-Garmig e7ac0e8af6 Fix dockerfile for Docker Lint action. 2024-05-12 02:16:21 +02:00
Daniel-Garmig 5278d65e50 Add Gitea Actions Support:
Publish_on_Tag / Build and Push (push) Has been cancelled
Publish_on_Tag / Docker Lint (push) Has been cancelled
- Build and publish on tag.
2024-05-12 02:04:24 +02:00
Daniel-Garmig e9b67efd46 Fix build error. 2024-05-11 23:05:45 +02:00
4 changed files with 35 additions and 15 deletions
+23
View File
@@ -0,0 +1,23 @@
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]
+9 -10
View File
@@ -18,6 +18,11 @@ 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
@@ -33,14 +38,8 @@ jobs:
with:
context: .
push: true
tags: daniel-garmig/somniaroomsapp:devbuild
tags: ${{vars.REGISTRY_INSTANCE}}/daniel-garmig/somniaroomsapp:devbuild
target: final-prod
lint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/[email protected]
platforms: linux/amd64,linux/arm64
secrets: |
GIT_AUTH_TOKEN=${{secrets.REGISTRY_TOKEN}}
+1 -2
View File
@@ -14,8 +14,7 @@ CMD ["npm", "run", "dev"]
# Build app for production.
FROM app-base as builder
RUN npm ci
RUN npm run build
RUN npm ci && npm run build
# production environment
FROM nginx:stable-alpine as final-prod
+2 -3
View File
@@ -1,4 +1,3 @@
/* 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"
@@ -59,8 +58,8 @@ function Calendar({
...classNames,
}}
components={{
IconLeft: ({ ...props }) => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: ({ ...props }) => <ChevronRightIcon className="h-4 w-4" />,
IconLeft: () => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: () => <ChevronRightIcon className="h-4 w-4" />,
}}
{...props}
/>