Skip to content

Commit

Permalink
cmd/worker: add service id as {prod|dev}-ecosystem-worker
Browse files Browse the repository at this point in the history
This enables metrics.

Change-Id: Ic8ffece746d14ab44ef54d984cda6e7107accc80
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/542597
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Zvonimir Pavlinovic <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
zpavlinovic committed Nov 16, 2023
1 parent f8da037 commit 3379007
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmd/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ ENV DOCKER_IMAGE=$DOCKER_IMAGE
ARG BQ_DATASET
ENV GO_ECOSYSTEM_BIGQUERY_DATASET=$BQ_DATASET

ARG SERVICE_ID
ENV GO_ECOSYSTEM_SERVICE_ID=$SERVICE_ID

ENV GO_ECOSYSTEM_BINARY_DIR=$BINARY_DIR

ENV GO_ECOSYSTEM_VULNDB_DIR=$VULNDB_DIR
Expand Down
3 changes: 2 additions & 1 deletion deploy/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ steps:
image=$(cat /workspace/image.txt)
docker build -t $image -f cmd/worker/Dockerfile . \
--build-arg DOCKER_IMAGE=$image \
--build-arg BQ_DATASET=${_BQ_DATASET}
--build-arg BQ_DATASET=${_BQ_DATASET} \
--build-arg SERVICE_ID=${_ENV}-ecosystem-worker
docker push $image
- id: Deploy
Expand Down

0 comments on commit 3379007

Please sign in to comment.