Skip to content

Commit

Permalink
fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Mar 31, 2020
1 parent 7433148 commit 52663db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .krew/popeye.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
homepage: https://popeyecli.io
shortDescription: 🧭 A Kubernetes cluster resource sanitizer
version: v0.7.1
version: v0.8.0
description: |
Popeye is a utility that scans live Kubernetes clusters and reports
potential issues with deployed resources and configurations.
Expand All @@ -25,7 +25,7 @@ spec:
matchLabels:
os: darwin
arch: amd64
uri: https://github.com/derailed/popeye/releases/download/v0.7.1/popeye_Darwin_x86_64.tar.gz
uri: https://github.com/derailed/popeye/releases/download/v0.8.0/popeye_Darwin_x86_64.tar.gz
sha256: e5f84baafbfa7170a02c0777e0dac5e7009c19c4b487d512b8f0e21298f10484
files:
- from: popeye
Expand All @@ -37,7 +37,7 @@ spec:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/derailed/popeye/releases/download/v0.7.1/popeye_Linux_x86_64.tar.gz
uri: https://github.com/derailed/popeye/releases/download/v0.8.0/popeye_Linux_x86_64.tar.gz
sha256: d4d7d776e05a0de5b681cb5421e3d9884103b902142313d8371e4f5e6b3d66dd
files:
- from: popeye
Expand All @@ -49,7 +49,7 @@ spec:
matchLabels:
os: windows
arch: amd64
uri: https://github.com/derailed/popeye/releases/download/v0.7.1/popeye_Windows_x86_64.tar.gz
uri: https://github.com/derailed/popeye/releases/download/v0.8.0/popeye_Windows_x86_64.tar.gz
sha256: a743da9715abaf320d3b9391bd0cff8f914300d0cd289a733a29224fde72fea7
files:
- from: popeye.exe
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
# Build...
FROM golang:1.13.5-alpine AS build

ENV VERSION=v0.5.0 GO111MODULE=on PACKAGE=github.com/derailed/popeye
ENV VERSION=v0.8.0 GO111MODULE=on PACKAGE=github.com/derailed/popeye

WORKDIR /go/src/$PACKAGE

COPY go.mod go.sum main.go ./
COPY internal internal
COPY types types
COPY pkg pkg
COPY cmd cmd

RUN apk update && apk upgrade ;\
apk --no-cache add git ca-certificates ;\
CGO_ENABLED=0 GOOS=linux go build -o /go/bin/popeye \
-ldflags="-w -s -X $PACKAGE/cmd.version=$VERSION" *.go
-trimpath -ldflags="-w -s -X $PACKAGE/cmd.version=$VERSION" *.go

# -----------------------------------------------------------------------------
# Image...
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME := popeye
PACKAGE := github.com/derailed/$(NAME)
VERSION := v0.3.2
VERSION := v0.8.0
GIT := $(shell git rev-parse --short HEAD)
DATE := $(shell date +%FT%T%Z)
IMG_NAME := derailed/popeye
Expand Down

0 comments on commit 52663db

Please sign in to comment.