Skip to content

Commit

Permalink
Dockerfile: update for 1.18, add trimpath
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Mar 17, 2022
1 parent 4180d78 commit f2e209c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ${{ fromJSON(needs.config.outputs.go_versions)[0] }}
go:
- ${{ fromJSON(needs.config.outputs.go_versions)[0] }}
steps:
- uses: actions/setup-go@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG GO_VERSION=1.17
ARG GO_VERSION=1.18
FROM quay.io/projectquay/golang:${GO_VERSION} AS build
WORKDIR /build/
ADD . /build/
ARG CLAIR_VERSION=dev
RUN go build \
-ldflags="-X main.Version=${CLAIR_VERSION}" \
-trimpath -ldflags="-X main.Version=${CLAIR_VERSION}" \
./cmd/clair
RUN go build\
RUN go build -trimpath \
./cmd/clairctl

FROM registry.access.redhat.com/ubi8/ubi-minimal AS init
Expand Down

0 comments on commit f2e209c

Please sign in to comment.