Skip to content

Commit

Permalink
deploy: stop publishing legacy files
Browse files Browse the repository at this point in the history
Stop publishing new updates to legacy vulndb files.

This is step 1 in a plan to remove support for vulndb v0. We will make
sure this step doesn't cause any issues before moving on to step 2, where
we will delete all legacy files.

For golang/go#65320

Change-Id: I4295445b2863e0c3f6dcdbb5657ffc4538cdcb2d
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/558657
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
  • Loading branch information
tatianab committed Jan 30, 2024
1 parent 097d870 commit 50ba0b4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions deploy/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ steps:
- -ec
- gsutil -q -m cp -r gs://go-vulndb /workspace

- id: GenerateLegacy
name: golang:1.21.5
entrypoint: bash
args: ["-ec", "go run ./cmd/gendb -out /workspace/legacydb -legacy"]

- id: Generate
name: golang:1.21.5
entrypoint: bash
Expand All @@ -51,7 +46,7 @@ steps:
entrypoint: bash
args:
- -ec
- go run ./cmd/checkdeploy -new /workspace/db -existing /workspace/go-vulndb -legacy /workspace/legacydb
- go run ./cmd/checkdeploy -new /workspace/db -existing /workspace/go-vulndb

- id: Deploy
name: gcr.io/cloud-builders/gsutil
Expand All @@ -68,6 +63,6 @@ steps:
- id: PostValidate
name: golang:1.20.12
entrypoint: bash
args: ["-ec", "go run ./cmd/checkdb -v1 -legacy /workspace/deployed/go-vulndb"]
args: ["-ec", "go run ./cmd/checkdb -v1 /workspace/deployed/go-vulndb"]
env:
- 'GOPROXY=https://proxy.golang.org'

0 comments on commit 50ba0b4

Please sign in to comment.