fix: change release web to dockerfile

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

@ -183,7 +183,6 @@ jobs:
build-docker: build-docker:
name: Release Docker name: Release Docker
needs: release-web
strategy: strategy:
matrix: matrix:
include: include:
@ -220,17 +219,6 @@ jobs:
with: with:
submodules: true 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 - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 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 FROM golang:1.25-alpine AS builder
ARG VERSION ARG VERSION
@ -8,6 +18,8 @@ COPY ./ ./
RUN apk add --no-cache bash curl git g++ RUN apk add --no-cache bash curl git g++
COPY --from=web-builder /synctv-web/dist/ /synctv/public/dist/
RUN curl -sL \ RUN curl -sL \
https://raw.githubusercontent.com/zijiren233/go-build-action/refs/tags/v1/build.sh | \ https://raw.githubusercontent.com/zijiren233/go-build-action/refs/tags/v1/build.sh | \
bash -s -- \ bash -s -- \

Loading…
Cancel
Save