File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ getGoDependencies:
23
23
GOOS=windows go get -v ./...
24
24
25
25
buildProject :
26
- rm -rf releases
26
+ rm -rf releases
27
27
mkdir releases
28
- gox -output=" releases/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -osarch=" linux/amd64 linux/arm windows/amd64 windows/386" -ldflags=" -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagNodeJS=` node --version` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagCommit=` git rev-parse HEAD` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagYarn=` yarn --version` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagCompilationTime=` TZ=UTC date +%Y-%m-%dT%H:%M:%S+0000` " ./cmd/golang-url-shortener
28
+ gox -output=" releases/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -osarch=" linux/amd64 linux/arm windows/amd64 windows/386 darwin/amd64 " -ldflags=" -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagNodeJS=` node --version` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagCommit=` git rev-parse HEAD` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagYarn=` yarn --version` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagCompilationTime=` TZ=UTC date +%Y-%m-%dT%H:%M:%S+0000` " ./cmd/golang-url-shortener
29
29
find releases -maxdepth 1 -mindepth 1 -type d -exec cp config/example.yaml {}/config.yaml \;
30
30
find releases -maxdepth 1 -mindepth 1 -type d -exec tar -cvjf {}.tar.bz2 {} \;
31
31
32
32
buildDockerImage :
33
- rm -rf docker_releases
33
+ rm -rf docker_releases
34
34
mkdir docker_releases
35
35
CGO_ENABLED=0 gox -output=" docker_releases/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -osarch=" linux/amd64 linux/arm" -ldflags=" -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagNodeJS=` node --version` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagCommit=` git rev-parse HEAD` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagYarn=` yarn --version` -X github.com/mxschmitt/golang-url-shortener/internal/util.ldFlagCompilationTime=` TZ=UTC date +%Y-%m-%dT%H:%M:%S+0000` " ./cmd/golang-url-shortener
36
36
docker build -t mxschmitt/golang_url_shortener:arm -f build/Dockerfile.arm .
You can’t perform that action at this time.
0 commit comments