mirror of https://github.com/dirtbags/moth.git
Change how dependencies are installed
This commit is contained in:
parent
77d5cc69d6
commit
a0398dc7e5
|
@ -10,7 +10,7 @@ test:
|
||||||
- main
|
- main
|
||||||
- merge_requests
|
- merge_requests
|
||||||
script:
|
script:
|
||||||
- go get github.com/go-redis/redis/v8
|
- go get ./...
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
push:
|
push:
|
||||||
|
|
|
@ -7,14 +7,14 @@ COPY example-puzzles /target/puzzles/
|
||||||
COPY LICENSE.md /target/
|
COPY LICENSE.md /target/
|
||||||
RUN mkdir -p /target/state
|
RUN mkdir -p /target/state
|
||||||
WORKDIR /src/
|
WORKDIR /src/
|
||||||
RUN go get github.com/go-redis/redis/v8
|
#RUN go get github.com/go-redis/redis/v8
|
||||||
|
RUN go get ./...
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./...
|
RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./...
|
||||||
# I can't use /target/bin: doing so would cause the devel server to overwrite Ubuntu's /bin
|
# I can't use /target/bin: doing so would cause the devel server to overwrite Ubuntu's /bin
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
FROM builder AS tester
|
FROM builder AS tester
|
||||||
RUN go get github.com/go-redis/redis/v8
|
|
||||||
RUN go test ./...
|
RUN go test ./...
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
Loading…
Reference in New Issue