tweaking github actions.

This commit is contained in:
Jason Kulatunga
2020-08-29 00:14:22 -07:00
parent bf6387ebf4
commit b7e6281f83
+11 -12
View File
@@ -4,17 +4,16 @@ on: [push]
jobs: jobs:
build: build:
# Job name is Greeting name: Build
name: Greeting
# This job runs on Linux
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: golang:1.13golang:1.13
steps: steps:
# This step uses GitHub's hello-world-javascript-action: https://github.com/actions/hello-world-javascript-action - name: Download dependencies
- name: Hello world run: go mod vendor
uses: actions/hello-world-javascript-action@v1 - name: Build binaries
with: env:
who-to-greet: 'Mona the Octocat' GOOS: linux
id: hello GOARCH: amd64
# This step prints an output (time) from the previous step's action. run: |
- name: Echo the greeting's time go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o scrutiny-web-linux-amd64 -tags "static" webapp/backend/cmd/scrutiny/scrutiny.go
run: echo 'The time was ${{ steps.hello.outputs.time }}. 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