From bcd6f3bf1a252887eaa6bd9c07035ae7b9f6e655 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 23 Aug 2022 13:36:45 +0200 Subject: [PATCH] ci: unify GOFLAGS with dockerfile --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 9e6e104..442a756 100644 --- a/.drone.yml +++ b/.drone.yml @@ -97,6 +97,8 @@ steps: - go vet # wait until the site is output into './public'. - hugo-extended + environment: + GOFLAGS: -trimpath -mod=readonly -modcacherw commands: - go build -v -ldflags "-s -w -X main.Version=${DRONE_COMMIT}" .