File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,22 @@ dockers:
28
28
goos : linux
29
29
goarch : amd64
30
30
31
+ # Name templates of the built binaries that should be used.
32
+ binaries :
33
+ - cgapp
34
+
31
35
# Templates of the Docker image names.
32
36
image_templates :
33
- - " koddr/cgapp:latest"
34
- - " koddr/cgapp:{{ .Tag }}"
35
- - " koddr/cgapp:{{ .Tag }}-{{ .Env.GO_VERSION }}"
36
37
- " koddr/cgapp:v{{ .Major }}"
38
+ - " koddr/cgapp:{{ .Tag }}"
39
+ - " koddr/cgapp:latest"
37
40
38
41
skip_push : true
39
42
40
43
# Path to the Dockerfile (from the project root).
41
44
dockerfile : Dockerfile
42
- extra_files :
43
- - dist/cgapp_linux_amd64/cgapp
45
+ # extra_files:
46
+ # - dist/cgapp_linux_amd64/cgapp
44
47
45
48
archives :
46
49
- # Replacements for GOOS and GOARCH in the archive name.
@@ -50,7 +53,7 @@ archives:
50
53
windows : Windows
51
54
amd64 : x86_64
52
55
53
- # Can be used to change the archive formats for specific GOOSs .
56
+ # Can be used to change the archive formats for specific GOOS .
54
57
format_overrides :
55
58
- goos : windows
56
59
format : zip
Original file line number Diff line number Diff line change 1
- FROM alpine:latest
1
+ FROM alpine:3.12
2
2
3
3
LABEL maintainer=
"Vic Shóstak <[email protected] >"
4
4
5
+ # Copy Create Go App binary
6
+ COPY cgapp /cgapp
7
+
5
8
# Install git
6
9
RUN apk add --no-cache git npm
7
10
8
11
# Install frontend CLIs
9
12
RUN npm i -g -s create-react-app preact-cli @vue/cli degit @angular/cli
10
13
11
- # Copy Create Go App binary
12
- COPY dist/cgapp_linux_amd64/cgapp .
13
-
14
14
# Set entry point to /cgapp
15
15
ENTRYPOINT ["/cgapp" ]
You can’t perform that action at this time.
0 commit comments