Opt: build workflows
This commit is contained in:
parent
a546e12f9b
commit
06c31b4ec1
|
@ -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:
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue