summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-05-10 21:32:35 -0700
committerCaleb Bassi <calebjbassi@gmail.com>2018-05-10 21:32:35 -0700
commit943109676feb97ef09e85ee44ba79ea7ddc10e2f (patch)
tree50f468dc56584ca2ed3e489f52f70944c716cec1 /build
parent4d945594794f6ff6e190bac647f45eaa90c655ff (diff)
Create build folder
Diffstat (limited to 'build')
-rw-r--r--build/.goreleaser.yml20
-rw-r--r--build/Dockerfile8
-rw-r--r--build/build_steps.txt10
3 files changed, 38 insertions, 0 deletions
diff --git a/build/.goreleaser.yml b/build/.goreleaser.yml
new file mode 100644
index 0000000..0ad1eb1
--- /dev/null
+++ b/build/.goreleaser.yml
@@ -0,0 +1,20 @@
+builds:
+ - binary: gotop
+ goos:
+ - linux
+ goarch:
+ - amd64
+ - 386
+ - arm
+ - arm64
+ goarm:
+ - 5
+ - 6
+ - 7
+archive:
+ name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}{{ .Arm }}{{ end }}"
+ replacements:
+ arm64: arm8
+ format: tgz
+dockers:
+ - image: cjbassi/gotop
diff --git a/build/Dockerfile b/build/Dockerfile
new file mode 100644
index 0000000..88c6caf
--- /dev/null
+++ b/build/Dockerfile
@@ -0,0 +1,8 @@
+# Build the binary with:
+# <CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .>
+
+FROM alpine
+
+COPY ./gotop /gotop
+
+ENTRYPOINT ["/gotop"]
diff --git a/build/build_steps.txt b/build/build_steps.txt
new file mode 100644
index 0000000..6bbf26e
--- /dev/null
+++ b/build/build_steps.txt
@@ -0,0 +1,10 @@
+make sure gotop builds and runs
+update version number in 'main.go' and 'download.sh'
+commit changes
+tag commit
+export token
+`sudo dockerd`
+`goreleaser`
+`rm -r dist`
+`git push`
+update AUR package