wip, migrate all scripts to new build pattern (Makefile + multiple GH agents).

This commit is contained in:
Jason Kulatunga
2022-06-27 22:08:44 -07:00
parent 316ce856f7
commit 4a16ca0d5a
10 changed files with 148 additions and 152 deletions
+8 -2
View File
@@ -1,3 +1,9 @@
########################################################################################################################
# Web Image
# NOTE: this image requires the `make binary-frontend` target to have been run before `docker build` The `dist` directory must exist.
########################################################################################################################
########
FROM golang:1.17-bullseye as backendbuild
@@ -5,8 +11,8 @@ WORKDIR /go/src/github.com/analogj/scrutiny
COPY . /go/src/github.com/analogj/scrutiny
RUN go mod vendor && \
go build -o scrutiny webapp/backend/cmd/scrutiny/scrutiny.go
RUN make binary-clean binary-all WEB_BINARY_NAME=scrutiny
########
FROM debian:bullseye-slim as runtime