fix: change release web to dockerfile

pull/330/head
zijiren233 2 months ago
parent 2ce169e50d
commit 3bfd995b17

@ -183,7 +183,6 @@ jobs:
build-docker:
name: Release Docker
needs: release-web
strategy:
matrix:
include:
@ -220,17 +219,6 @@ jobs:
with:
submodules: true
- name: Download Web
uses: actions/download-artifact@v4
with:
name: synctv-web
path: synctv-web/dist
- name: Move to public
run: |
rm -rf public/dist/*
cp -r synctv-web/dist/* public/dist/
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

@ -1,3 +1,13 @@
FROM node:18-alpine AS web-builder
WORKDIR /synctv-web
COPY ./synctv-web/ ./
RUN npm ci || npm install
RUN npm run build
FROM golang:1.25-alpine AS builder
ARG VERSION
@ -8,6 +18,8 @@ COPY ./ ./
RUN apk add --no-cache bash curl git g++
COPY --from=web-builder /synctv-web/dist/ /synctv/public/dist/
RUN curl -sL \
https://raw.githubusercontent.com/zijiren233/go-build-action/refs/tags/v1/build.sh | \
bash -s -- \

Loading…
Cancel
Save