Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Build binaries using go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
alxrem committed Mar 20, 2020
1 parent 41180b0 commit 4d895ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ build:binaries:
stage: build
extends:
- .release
image: golang:alpine
image: golang:1.13-alpine
script:
- apk add -U binutils
- ci/build_binaries
Expand Down
4 changes: 0 additions & 4 deletions ci/build_binaries
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/bin/sh

BUILDDIR=/go/src/gitlab.com/$CI_PROJECT_PATH
DEST=`pwd`/binaries
GOARCH=amd64

mkdir -p ${DEST}/
mkdir -p `dirname $BUILDDIR`
ln -s `pwd` $BUILDDIR
cd $BUILDDIR

for GOOS in windows linux darwin; do
BINARY="${DEST}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}-${GOOS}-${GOARCH}"
Expand Down

0 comments on commit 4d895ce

Please sign in to comment.