|
|
|
@ -4,17 +4,16 @@ on: [push]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
# Job name is Greeting
|
|
|
|
|
name: Greeting
|
|
|
|
|
# This job runs on Linux
|
|
|
|
|
name: Build
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
container: golang:1.13golang:1.13
|
|
|
|
|
steps:
|
|
|
|
|
# This step uses GitHub's hello-world-javascript-action: https://github.com/actions/hello-world-javascript-action
|
|
|
|
|
- name: Hello world
|
|
|
|
|
uses: actions/hello-world-javascript-action@v1
|
|
|
|
|
with:
|
|
|
|
|
who-to-greet: 'Mona the Octocat'
|
|
|
|
|
id: hello
|
|
|
|
|
# This step prints an output (time) from the previous step's action.
|
|
|
|
|
- name: Echo the greeting's time
|
|
|
|
|
run: echo 'The time was ${{ steps.hello.outputs.time }}.
|
|
|
|
|
- name: Download dependencies
|
|
|
|
|
run: go mod vendor
|
|
|
|
|
- name: Build binaries
|
|
|
|
|
env:
|
|
|
|
|
GOOS: linux
|
|
|
|
|
GOARCH: amd64
|
|
|
|
|
run: |
|
|
|
|
|
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
|
|
|
|
|