Skip to content

Commit

Permalink
update build and release to ensure it runs on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgibbons committed Sep 7, 2022
1 parent 70b44dc commit 3c95af6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/push-to-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export PATH=${PATH}:${GOPATH}/bin

if ! type -P github-release >/dev/null 2>&1 ; then
go get github.com/aktau/github-release
go install github.com/aktau/github-release
fi

echo "Tag is ${TAG}"
Expand Down
18 changes: 14 additions & 4 deletions docker-compose-build.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
version: '2'
services:
godep:
image: golang:1.19
image: amd64/golang:1.19
platform: linux/x86_64
volumes:
- ./:/go/src/a/${BINARY_NAME}
command: ./bin/get-deps.sh
working_dir: /go/src/a/${BINARY_NAME}
environment:
GOOS: linux
GOARCH: amd64
GO111MODULE: "on"
test:
image: golang:1.19
image: amd64/golang:1.19
platform: linux/x86_64
volumes:
- ./:/go/src/a/${BINARY_NAME}
command: ./bin/run-test-suite.sh
working_dir: /go/src/a/${BINARY_NAME}
environment:
GOOS: linux
GOARCH: amd64
GO111MODULE: "on"
binary:
image: golang:1.19
image: amd64/golang:1.19
platform: linux/x86_64
volumes:
- ./:/go/src/a/${BINARY_NAME}
command: ./bin/build-binary.sh
working_dir: /go/src/a/${BINARY_NAME}
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
GO111MODULE: "on"
release:
image: golang:1.19
image: amd64/golang:1.19
platform: linux/x86_64
command: ./bin/push-to-github.sh
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN}
Expand Down

0 comments on commit 3c95af6

Please sign in to comment.