diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b73d9c1..113f506 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,10 +18,10 @@ jobs: run: bun install - name: Build run: bun run build - - name: Create Artifact + - name: Create Project Artifact uses: christopherhx/gitea-upload-artifact@v4 with: - name: build + name: project path: . lint: @@ -33,11 +33,16 @@ jobs: - name: Download Artifact uses: christopherhx/gitea-download-artifact@v4 with: - name: build + name: project - name: Install Biome run: bun install -g biome - name: 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: needs: [build] diff --git a/Dockerfile b/Dockerfile index 4897c34..a9bd62f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,7 @@ -FROM oven/bun +FROM nginx:latest WORKDIR /app -COPY package.json bun.lock ./ +COPY ./dist . -RUN bun install - -COPY . . - -RUN bun run build - -EXPOSE 5173 - -CMD ["bun", "run", "dev", "--host"] +CMD ["nginx", "-g", "daemon off; "]