Opt: build workflows

This commit is contained in:
zijiren233 2023-12-26 11:46:07 +08:00
parent a546e12f9b
commit 06c31b4ec1
3 changed files with 6 additions and 4 deletions

View File

@ -22,7 +22,7 @@ jobs:
- name: Build
run: |
bash script/build.sh -v dev -p "windows,linux,darwin"
make build-all
- uses: "marvinpinto/action-automatic-releases@latest"
with:

View File

@ -17,7 +17,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: synctvorg/synctv
images: synctvorg/vendors
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}

View File

@ -1,18 +1,20 @@
From alpine:latest as builder
ARG VERSION=dev
WORKDIR /vendors
COPY ./ ./
RUN apk add --no-cache bash curl gcc git go musl-dev
RUN make build
RUN bash script/build.sh -v ${VERSION}
From alpine:latest
ENV PUID=0 PGID=0 UMASK=022
COPY --from=builder /vendors/bin/vendors /usr/local/bin/vendors
COPY --from=builder /vendors/build/vendors /usr/local/build/vendors
COPY script/entrypoint.sh /entrypoint.sh