Skip to content

Commit 7c01804

Browse files
committed
Update pipeline
1 parent 1411823 commit 7c01804

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

.circleci/config.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff 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
@@ -60,7 +57,6 @@ jobs:
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: |

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16.13.0-alpine3.11 AS build_node
1+
FROM node:16.15.1-alpine3.16 AS build_node
22
WORKDIR /tmp/ssl-remote-control
33
COPY . .
44
RUN yarn install
@@ -8,15 +8,12 @@ FROM golang:1.18-alpine AS build_go
88
WORKDIR /go/src/github.com/RoboCup-SSL/ssl-remote-control
99
COPY . .
1010
COPY --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
1714
FROM alpine:3.16
1815
COPY --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
2017
USER 1000
2118
ENTRYPOINT ["/app/ssl-remote-control"]
2219
CMD []

0 commit comments

Comments
 (0)