Skip to content

Commit

Permalink
deploy: add mkdir and -e
Browse files Browse the repository at this point in the history
Add mkdir for deployed directory in CopyDeployed step, and
ensure all steps have "-e" flag (exit on error).

Change-Id: Ie5e09948b3064292842df068f774678c49defef7
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/541675
Auto-Submit: Tatiana Bradley <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
  • Loading branch information
tatianab authored and gopherbot committed Nov 10, 2023
1 parent b6f947e commit 4786473
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ steps:
- id: GenerateLegacy
name: golang:1.19.2
entrypoint: bash
args: ["-c", "go run ./cmd/gendb -out /workspace/legacydb -legacy"]
args: ["-ec", "go run ./cmd/gendb -out /workspace/legacydb -legacy"]

- id: Generate
name: golang:1.19.2
entrypoint: bash
args: ["-c", "go run ./cmd/gendb -out /workspace/db"]
args: ["-ec", "go run ./cmd/gendb -out /workspace/db"]

- id: PreValidate
name: golang:1.19.2
Expand All @@ -63,9 +63,9 @@ steps:
entrypoint: bash
args:
- -ec
- gsutil -q -m cp -r gs://go-vulndb /workspace/deployed
- mkdir /workspace/deployed && gsutil -q -m cp -r gs://go-vulndb /workspace/deployed

- id: PostValidate
name: golang:1.19.2
entrypoint: bash
args: ["-c", "go run ./cmd/checkdb /workspace/deployed/go-vulndb"]
args: ["-ec", "go run ./cmd/checkdb /workspace/deployed/go-vulndb"]

0 comments on commit 4786473

Please sign in to comment.