Skip to content

Commit

Permalink
fix rudder key secret name (#929)
Browse files Browse the repository at this point in the history
After some name changing, MM_RUDDER_WRITE_KEY has become MM_RUDDER_PLUGINS_PROD.

Fix custom.mk so we get the right data.
  • Loading branch information
trilopin authored Mar 30, 2023
1 parent 26caf2a commit 8dbe4b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build/custom.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

.DEFAULT_GOAL := all

ifndef MM_RUDDER_WRITE_KEY
MM_RUDDER_WRITE_KEY = 1d5bMvdrfWClLxgK1FvV3s4U1tg
# If there's no MM_RUDDER_PLUGINS_PROD, add DEV data
RUDDER_WRITE_KEY = 1d5bMvdrfWClLxgK1FvV3s4U1tg
ifdef MM_RUDDER_PLUGINS_PROD
RUDDER_WRITE_KEY = $(MM_RUDDER_PLUGINS_PROD)
endif
LDFLAGS += -X "github.com/mattermost/mattermost-plugin-jira/server/utils/telemetry.rudderWriteKey=$(MM_RUDDER_WRITE_KEY)"
LDFLAGS += -X "github.com/mattermost/mattermost-plugin-api/experimental/telemetry.rudderWriteKey=$(RUDDER_WRITE_KEY)"


# Build info
BUILD_DATE = $(shell date -u)
Expand Down

0 comments on commit 8dbe4b0

Please sign in to comment.