pull/1/head
Jason Kulatunga 4 years ago
parent 4610247207
commit d9de1b9cbd

@ -8,12 +8,19 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: golang:1.13 container: golang:1.13
steps: steps:
- name: Download dependencies - name: Checkout
run: go mod vendor uses: actions/checkout@v2
- name: Build binaries - name: Build
env: env:
GOOS: linux GOOS: linux
GOARCH: amd64 GOARCH: amd64
PROJECT_PATH: /go/src/github.com/analogj/scrutiny/
run: | run: |
mkdir -p $PROJECT_PATH
cp -a $GITHUB_WORKSPACE/* $PROJECT_PATH/
cd $PROJECT_PATH
go mod vendor
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-collector-metrics-linux-amd64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-collector-metrics-linux-amd64 -tags "static" collector/cmd/collector-metrics/collector-metrics.go

Loading…
Cancel
Save