Skip to content

Commit

Permalink
build on the node
Browse files Browse the repository at this point in the history
Signed-off-by: sferna1 <santhosh.fernandes@gmail.com>
  • Loading branch information
sanfern committed Oct 14, 2022
1 parent 90424b3 commit 39b8525
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci-build.yaml
Expand Up @@ -10,11 +10,13 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.18.6-alpine3.16

runs-on: ubuntu-20.04
steps:
- name: Setup Go 1.18.6
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
with:
go-version: '1.18.6'

- name: Harden Runner
uses: step-security/harden-runner@248ae51c2e8cc9622ecf50685c8bf7150c6e8813
with:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -9,7 +9,7 @@ swagger:
@$(GOPATH)/bin/swag init -d "./" -g "apis/configwatch.go"

build:
@go build
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-extldflags=-static"

install: swagger
@go install .
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -ldflags="-extldflags=-static"

0 comments on commit 39b8525

Please sign in to comment.