зеркало из https://github.com/golang/vulndb.git
deploy: add README.md and kokoro.sh
A README is added to the deploy/ directory to explain what the files are in that directory. The contents of the internal kokoro/vulndb/dbdiff/buid.sh file is copied to deploy/kokoro.sh to make it easier to make modifications to the kokoro config. Change-Id: I62e829aa881729837e7adb56eaacc4f7e6618713 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/382194 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Родитель
c0702bf720
Коммит
dd70b18ea8
|
@ -0,0 +1,15 @@
|
||||||
|
# Deploy
|
||||||
|
|
||||||
|
The Go vulndb project is hosted on GCP and uses a continuous integration
|
||||||
|
service called “Kokoro” for running tests.
|
||||||
|
|
||||||
|
This directory contains files used for kokoro test job configurations and for
|
||||||
|
building and deploying the vulnerability database and worker.
|
||||||
|
(Additional job definitions live in an internal repository).
|
||||||
|
|
||||||
|
`kokoro.sh` acts as the entry point for scripts to be run via kokoro.
|
||||||
|
|
||||||
|
`build.yaml` and `gcp-deploy.sh` are used to deploy the vulnerability database
|
||||||
|
GCS bucket.
|
||||||
|
|
||||||
|
`worker.yaml` is used to build the vulnerability database worker.
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Copyright 2022 The Go Authors. All rights reserved.
|
||||||
|
# Use of this source code is governed by a BSD-style
|
||||||
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir old-db
|
||||||
|
gsutil -m cp -r gs://go-vulndb/* old-db
|
||||||
|
|
||||||
|
go install golang.org/x/vulndb/cmd/gendb@latest
|
||||||
|
go install golang.org/x/vulndb/cmd/dbdiff@latest
|
||||||
|
|
||||||
|
export PATH=$PATH:$GOPATH/bin
|
||||||
|
|
||||||
|
gendb -reports reports -out new-db
|
||||||
|
dbdiff old-db new-db
|
Загрузка…
Ссылка в новой задаче