deploy/kokoro.sh: clean up
Remove an unnecessary cd and renamings, to match
similar changes to our internal kokoro build script.
Change-Id: Ie5abb2721488303840417e8495b7d53843e849a1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/386695
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
diff --git a/deploy/kokoro.sh b/deploy/kokoro.sh
index f2b7242..bfe182b 100755
--- a/deploy/kokoro.sh
+++ b/deploy/kokoro.sh
@@ -12,9 +12,9 @@
# deepen the clone with `git fetch --unshallow` failed,
# apparently because Kokoro uses the `rpc:` scheme to
# clone the repo.
-cd ..
-git clone https://go.googlesource.com/vulndb vulndb2
-cd vulndb2
+
+git clone https://go.googlesource.com/vulndb
+cd vulndb
# Copy the existing vuln DB into a local directory so we can diff it.
mkdir old-db
@@ -24,8 +24,8 @@
# and diff it with the old one. Do all this in a docker container
# so we can select the version of Go that we want.
docker run --rm \
- -v $PWD:/vulndb2 \
- -w /vulndb2 \
+ -v $PWD:/vulndb \
+ -w /vulndb \
golang:1.17.3 \
- /bin/bash -c 'go run ./cmd/gendb -repo /vulndb2 -out new-db &&
+ /bin/bash -c 'go run ./cmd/gendb -repo /vulndb -out new-db &&
go run ./cmd/dbdiff old-db new-db'