mirror of
https://github.com/tavo-wasd-gh/conex-builder.git
synced 2025-06-05 19:33:28 -06:00
goversion
This commit is contained in:
parent
ed80223e2f
commit
27c375144c
2 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.19
|
||||
FROM golang:1.22.7
|
||||
WORKDIR /conex-builder
|
||||
COPY . .
|
||||
RUN make
|
||||
|
|
7
Makefile
7
Makefile
|
@ -6,6 +6,7 @@ SRC = ${SRCDIR}/main.go \
|
|||
${SRCDIR}/auth.go \
|
||||
${SRCDIR}/bucket.go \
|
||||
|
||||
GO = go
|
||||
GOFILES = ${SRCDIR}/go.sum ${SRCDIR}/go.mod
|
||||
GOMODS = github.com/joho/godotenv \
|
||||
github.com/lib/pq \
|
||||
|
@ -18,7 +19,7 @@ GOMODS = github.com/joho/godotenv \
|
|||
all: ${BIN} fmt
|
||||
|
||||
${BIN}: ${SRC} ${GOFILES}
|
||||
(cd ${SRCDIR} && go build -o ../${BIN})
|
||||
(cd ${SRCDIR} && ${GO} build -o ../${BIN})
|
||||
|
||||
fmt: ${SRC}
|
||||
@diff=$$(gofmt -d $^); \
|
||||
|
@ -28,8 +29,8 @@ fmt: ${SRC}
|
|||
fi
|
||||
|
||||
${GOFILES}:
|
||||
(cd ${SRCDIR} && go mod init ${BIN})
|
||||
(cd ${SRCDIR} && go get ${GOMODS})
|
||||
(cd ${SRCDIR} && ${GO} mod init ${BIN})
|
||||
(cd ${SRCDIR} && ${GO} get ${GOMODS})
|
||||
|
||||
start: ${BIN}
|
||||
@./$< &
|
||||
|
|
Loading…
Reference in a new issue