mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-19 02:39:18 +00:00
feat: prebuild out of docker
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -62,13 +62,28 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Pre build server
|
||||
run: |
|
||||
bun install --frozen-lockfile
|
||||
cd server
|
||||
bun install --frozen-lockfile
|
||||
bun run compile
|
||||
rm -rf node_modules
|
||||
cd ..
|
||||
rm -rf node_modules
|
||||
|
||||
- name: Build and push
|
||||
id: build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64 # ${{ matrix.platform }}
|
||||
file: ./Dockerfile
|
||||
file: ./Dockerfile.github-actions
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
|
Reference in New Issue
Block a user