github.skymusic.top/operator-framework/operator-sdk@v0.8.2/hack/image/build-scorecard-proxy-image.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -eux
     4  
     5  # build operator binary and base image
     6  GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -gcflags "all=-trimpath=${GOPATH}" -asmflags "all=-trimpath=${GOPATH}" -o images/scorecard-proxy/scorecard-proxy images/scorecard-proxy/cmd/proxy/main.go
     7  pushd images/scorecard-proxy
     8  docker build -t "$1" .
     9  popd