File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 20
20
with :
21
21
username : ${{ secrets.DOCKERHUB_USERNAME }}
22
22
password : ${{ secrets.DOCKERHUB_TOKEN }}
23
- - name : Setup Go
24
- uses : actions/setup-go@v3
25
- with :
26
- go-version : 1.18
27
- - name : Build
28
- run : make build
29
23
- name : Set commit sha
30
24
id : vars
31
25
run : echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
Original file line number Diff line number Diff line change
1
+ FROM golang:buster as build
2
+
3
+ WORKDIR /app/
4
+
5
+ # Install dependencies
6
+ COPY go.mod go.sum ./
7
+ RUN go mod download
8
+
9
+ COPY . .
10
+
11
+ RUN make build
12
+
1
13
FROM python:3.9-slim
2
14
3
15
LABEL "repository" ="https://github.com/nitrictech/cli"
@@ -87,4 +99,4 @@ RUN pulumi plugin install resource random
87
99
ENV HOST_DOCKER_INTERNAL_IFACE eth0
88
100
ENV PULUMI_SKIP_UPDATE_CHECK "true"
89
101
90
- COPY bin/nitric /usr/bin/
102
+ COPY --from=build /app/ bin/nitric /usr/bin/
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ require (
6
6
github.com/AlecAivazis/survey/v2 v2.3.5
7
7
github.com/Azure/azure-sdk-for-go v66.0.0+incompatible
8
8
github.com/Azure/go-autorest/autorest/to v0.4.0
9
- github.com/avast/retry-go v3.0.0+incompatible
10
9
github.com/davecgh/go-spew v1.1.1
11
10
github.com/docker/cli v20.10.17+incompatible
12
11
github.com/docker/docker v20.10.17+incompatible
@@ -16,7 +15,6 @@ require (
16
15
github.com/golang/mock v1.6.0
17
16
github.com/golangci/golangci-lint v1.46.2
18
17
github.com/google/go-cmp v0.5.8
19
- github.com/google/uuid v1.3.0
20
18
github.com/hashicorp/consul/sdk v0.11.0
21
19
github.com/hashicorp/go-getter v1.6.2
22
20
github.com/hashicorp/go-version v1.6.0
@@ -52,6 +50,11 @@ require (
52
50
gopkg.in/yaml.v2 v2.4.0
53
51
)
54
52
53
+ require (
54
+ github.com/avast/retry-go v3.0.0+incompatible
55
+ github.com/google/uuid v1.3.0
56
+ )
57
+
55
58
require (
56
59
4d63.com/gochecknoglobals v0.1.0 // indirect
57
60
atomicgo.dev/cursor v0.1.1 // indirect
You can’t perform that action at this time.
0 commit comments