create buid artifact
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -18,10 +18,10 @@ jobs:
|
|||||||
run: bun install
|
run: bun install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build
|
run: bun run build
|
||||||
- name: Create Artifact
|
- name: Create Project Artifact
|
||||||
uses: christopherhx/gitea-upload-artifact@v4
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build
|
name: project
|
||||||
path: .
|
path: .
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@@ -33,11 +33,16 @@ jobs:
|
|||||||
- name: Download Artifact
|
- name: Download Artifact
|
||||||
uses: christopherhx/gitea-download-artifact@v4
|
uses: christopherhx/gitea-download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build
|
name: project
|
||||||
- name: Install Biome
|
- name: Install Biome
|
||||||
run: bun install -g biome
|
run: bun install -g biome
|
||||||
- name: Run Biome lint
|
- name: Run Biome lint
|
||||||
run: biome lint .
|
run: biome lint .
|
||||||
|
- name: Create Build Artifact
|
||||||
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: project
|
||||||
|
path: dist
|
||||||
|
|
||||||
build-and-push-docker:
|
build-and-push-docker:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
|
|||||||
14
Dockerfile
14
Dockerfile
@@ -1,15 +1,7 @@
|
|||||||
FROM oven/bun
|
FROM nginx:latest
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json bun.lock ./
|
COPY ./dist .
|
||||||
|
|
||||||
RUN bun install
|
CMD ["nginx", "-g", "daemon off; "]
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN bun run build
|
|
||||||
|
|
||||||
EXPOSE 5173
|
|
||||||
|
|
||||||
CMD ["bun", "run", "dev", "--host"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user