blob: bbefff7410b9e71d6ea71d3287f1a726a2a09b6e [file] [log] [blame]
steps:
- id: Lock
name: golang:1.17.3
entrypoint: bash
args:
- -ec
- |
if [[ "$COMMIT_SHA" = '' ]]; then
echo "no COMMIT_SHA, not locking"
exit 0
fi
go run golang.org/x/website/cmd/locktrigger@latest \
-project $PROJECT_ID -build $BUILD_ID -repo https://go.googlesource.com/vulndb
- name: golang
entrypoint: bash
args: ["-c", "go install golang.org/x/vulndb/cmd/gendb@latest
&& gendb -out /workspace/db"]
- name: gcr.io/cloud-builders/gsutil
entrypoint: bash
args: ["./deploy/gcp-deploy.sh"]