Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set User agent for csi #10

Merged
merged 3 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
################################
FROM golang:alpine AS builder

ARG csi_version=dev

# Install git - required for fetching the dependencies
RUN apk add --update --no-cache ca-certificates git
WORKDIR /app
Expand All @@ -15,7 +17,7 @@ RUN go mod verify
RUN find .

# Build the binary.
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /app/civo-csi
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -X github.com/civo/civo-csi/driver.CSIVersion=${csi_version} -o /app/civo-csi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this variable being injected during a non-dev push?



############################
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/civo/civo-csi

require (
github.com/BurntSushi/toml v0.3.1
github.com/civo/civogo v0.3.3
github.com/civo/civogo v0.3.13
github.com/container-storage-interface/spec v1.6.0
github.com/joho/godotenv v1.4.0
github.com/kubernetes-csi/csi-test/v4 v4.4.0
Expand Down
Loading