File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed
Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,14 @@ jobs:
2525 - checkout
2626 - attach_workspace :
2727 at : .
28- - run : go get -v -t -d ./...
2928 - run : go test -v ./...
3029 - run :
31- working_directory : cmd/ssl-remote-control
3230 command : |
33- go get -v github.com/gobuffalo/packr/packr
34- GOOS=linux GOARCH=amd64 packr build -o ../../release/ssl-remote-control_linux_amd64
35- GOOS=linux GOARCH=arm packr build -o ../../release/ssl-remote-control_linux_arm
36- GOOS=linux GOARCH=arm64 packr build -o ../../release/ssl-remote-control_linux_arm64
37- GOOS=darwin GOARCH=amd64 packr build -o ../../release/ssl-remote-control_darwin_amd64
38- GOOS=windows GOARCH=amd64 packr build -o ../../release/ssl-remote-control_windows_amd64.exe
31+ GOOS=linux GOARCH=amd64 go build -o release/ssl-remote-control_linux_amd64 ./cmd/ssl-remote-control
32+ GOOS=linux GOARCH=arm go build -o release/ssl-remote-control_linux_arm ./cmd/ssl-remote-control
33+ GOOS=linux GOARCH=arm64 go build -o release/ssl-remote-control_linux_arm64 ./cmd/ssl-remote-control
34+ GOOS=darwin GOARCH=amd64 go build -o release/ssl-remote-control_darwin_amd64 ./cmd/ssl-remote-control
35+ GOOS=windows GOARCH=amd64 go build -o release/ssl-remote-control_windows_amd64.exe ./cmd/ssl-remote-control
3936 - run :
4037 command : |
4138 mkdir -p release
6057 mv ssl-remote-control_linux_arm64 ssl-remote-control_${CIRCLE_TAG}_linux_arm64
6158 mv ssl-remote-control_darwin_amd64 ssl-remote-control_${CIRCLE_TAG}_darwin_amd64
6259 mv ssl-remote-control_windows_amd64.exe ssl-remote-control_${CIRCLE_TAG}_windows_amd64.exe
63- mv bootstrap.tar.gz bootstrap_${CIRCLE_TAG}.tar.gz
6460 - run :
6561 name : " Publish Release on GitHub"
6662 command : |
Original file line number Diff line number Diff line change 1- FROM node:16.13.0 -alpine3.11 AS build_node
1+ FROM node:16.15.1 -alpine3.16 AS build_node
22WORKDIR /tmp/ssl-remote-control
33COPY . .
44RUN yarn install
@@ -8,15 +8,12 @@ FROM golang:1.18-alpine AS build_go
88WORKDIR /go/src/github.com/RoboCup-SSL/ssl-remote-control
99COPY . .
1010COPY --from=build_node /tmp/ssl-remote-control/internal/ui/dist internal/ui/dist
11- RUN go get -v -t -d ./...
12- RUN go get -v github.com/gobuffalo/packr/packr
13- WORKDIR cmd/ssl-remote-control
14- RUN GOOS=linux GOARCH=amd64 packr build -o ../../release/ssl-remote-control_linux_amd64
11+ RUN go build -o release/ssl-remote-control_linux_amd64 ./cmd/ssl-remote-control
1512
1613# Start fresh from a smaller image
1714FROM alpine:3.16
1815COPY --from=build_go /go/src/github.com/RoboCup-SSL/ssl-remote-control/release/ssl-remote-control_linux_amd64 /app/ssl-remote-control
19- EXPOSE 8082
16+ EXPOSE 8083
2017USER 1000
2118ENTRYPOINT ["/app/ssl-remote-control" ]
2219CMD []
You can’t perform that action at this time.
0 commit comments