Skip to content

Adds ability to append LDFlags to Docker build of operator #56

Adds ability to append LDFlags to Docker build of operator

Adds ability to append LDFlags to Docker build of operator #56

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
paths-ignore:
- "**.md"
push:
branches:
- main
paths-ignore:
- "**.md"
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
go: ["1.20", "1.21"]
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v4
- name: Cache modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: make build