diff --git a/deploy/build.yaml b/deploy/build.yaml index 558bf4ac..287c2f57 100644 --- a/deploy/build.yaml +++ b/deploy/build.yaml @@ -34,6 +34,20 @@ steps: entrypoint: bash args: ["-c", "go run ./cmd/gendb -out /workspace/db"] + - id: CopyExisting + name: gcr.io/cloud-builders/gsutil + entrypoint: bash + args: + - -e + - gsutil -q -m cp -r gs://go-vulndb /workspace + + - id: Validate + name: golang:1.19.2 + entrypoint: bash + args: + - -c + - go run ./cmd/checkdeploy -new /workspace/db -existing /workspace/go-vulndb + - id: Deploy name: gcr.io/cloud-builders/gsutil entrypoint: bash