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:
2828 goos : linux
2929 goarch : amd64
3030
31+ # Name templates of the built binaries that should be used.
32+ binaries :
33+ - cgapp
34+
3135 # Templates of the Docker image names.
3236 image_templates :
33- - " koddr/cgapp:latest"
34- - " koddr/cgapp:{{ .Tag }}"
35- - " koddr/cgapp:{{ .Tag }}-{{ .Env.GO_VERSION }}"
3637 - " koddr/cgapp:v{{ .Major }}"
38+ - " koddr/cgapp:{{ .Tag }}"
39+ - " koddr/cgapp:latest"
3740
3841 skip_push : true
3942
4043 # Path to the Dockerfile (from the project root).
4144 dockerfile : Dockerfile
42- extra_files :
43- - dist/cgapp_linux_amd64/cgapp
45+ # extra_files:
46+ # - dist/cgapp_linux_amd64/cgapp
4447
4548archives :
4649 - # Replacements for GOOS and GOARCH in the archive name.
@@ -50,7 +53,7 @@ archives:
5053 windows : Windows
5154 amd64 : x86_64
5255
53- # Can be used to change the archive formats for specific GOOSs .
56+ # Can be used to change the archive formats for specific GOOS .
5457 format_overrides :
5558 - goos : windows
5659 format : zip
Original file line number Diff line number Diff line change 1- FROM alpine:latest
1+ FROM alpine:3.12
22
33LABEL maintainer=
"Vic Shóstak <[email protected] >" 44
5+ # Copy Create Go App binary
6+ COPY cgapp /cgapp
7+
58# Install git
69RUN apk add --no-cache git npm
710
811# Install frontend CLIs
912RUN npm i -g -s create-react-app preact-cli @vue/cli degit @angular/cli
1013
11- # Copy Create Go App binary
12- COPY dist/cgapp_linux_amd64/cgapp .
13-
1414# Set entry point to /cgapp
1515ENTRYPOINT ["/cgapp" ]
You can’t perform that action at this time.
0 commit comments