ci-test
This commit is contained in:
parent
29948d3c06
commit
ce5a32065b
2
.github/workflows/build_nix.yml
vendored
2
.github/workflows/build_nix.yml
vendored
@ -10,4 +10,4 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cachix/install-nix-action@v12
|
||||
- name: Building package
|
||||
run: nix-build . -A defaultPackage.x86_64-linux
|
||||
run: nix build
|
||||
|
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@ -34,6 +34,7 @@ jobs:
|
||||
run: |
|
||||
mkdir -p recored-ui-${GOOS}-${GOARCH}
|
||||
go build -trimpath -ldflags "-w -s" -v -o ./recored-ui-${GOOS}-${GOARCH} ./...
|
||||
cp README.md LICENSE recored-ui-${GOOS}-${GOARCH}
|
||||
tar czvf recored-ui-${GOOS}-${GOARCH}.tgz recored-ui-${GOOS}-${GOARCH}
|
||||
|
||||
- name: Build-linux-arm64
|
||||
@ -43,6 +44,7 @@ jobs:
|
||||
run: |
|
||||
mkdir -p recored-ui-${GOOS}-${GOARCH}
|
||||
go build -trimpath -ldflags "-w -s" -v -o ./recored-ui-${GOOS}-${GOARCH} ./...
|
||||
cp README.md LICENSE recored-ui-${GOOS}-${GOARCH}
|
||||
tar czvf recored-ui-${GOOS}-${GOARCH}.tgz recored-ui-${GOOS}-${GOARCH}
|
||||
|
||||
- name: Create Release
|
||||
|
@ -6,9 +6,9 @@ RUN cd web && npm i && npm run build
|
||||
|
||||
FROM golang as server
|
||||
WORKDIR /src
|
||||
COPY --stage web /src .
|
||||
COPY --from web /src .
|
||||
RUN go get . && go generate ./... && go build .
|
||||
|
||||
FROM scratch
|
||||
COPY --stage server /src/reCoreD-UI .
|
||||
COPY --from server /src/reCoreD-UI .
|
||||
ENTRYPOINT [ '/reCoreD-UI' ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user