diff --git a/.goreleaser.yml b/.goreleaser.yml index 85d3354b..f055edc6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,8 @@ builds: - main: ./cmd/helms3 binary: ./bin/helms3 + flags: + - -trimpath env: - CGO_ENABLED=0 targets: diff --git a/Dockerfile b/Dockerfile index c5c6ad03..5431f997 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,16 @@ +ARG GO_VERSION=1.17 ARG HELM_VERSION -FROM golang:1.17-alpine as build +FROM golang:${GO_VERSION}-alpine as build ARG PLUGIN_VERSION +RUN apk add --no-cache git + WORKDIR /workspace/helm-s3 COPY . . -RUN apk add --no-cache git - RUN CGO_ENABLED=0 go build -o bin/helms3 \ -mod=vendor \ -ldflags "-X main.version=${PLUGIN_VERSION}" \ diff --git a/plugin.yaml b/plugin.yaml index d999f448..53fc6d94 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -2,8 +2,7 @@ name: "s3" version: "0.12.0" usage: "Manage chart repositories on Amazon S3" description: |- - The plugin allows to use s3 protocol to upload, fetch charts and to work with repositories. - https://github.com/hypnoglow/helm-s3 + Provides AWS S3 protocol support for charts and repos. https://github.com/hypnoglow/helm-s3 command: "$HELM_PLUGIN_DIR/bin/helms3" downloaders: - command: "bin/helms3"