Skip to content

Commit

Permalink
Add missing quotes in GCB triggers (#11607)
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini authored Mar 31, 2022
1 parent 373c609 commit 809e60c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
11 changes: 6 additions & 5 deletions .cloudbuild/ci/integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
timeout: 25m

options:
machineType: E2_HIGHCPU_32

# This build needs to run in environments where the _GITHUB_DEPLOY_KEY_SRC
# substitution is defined, but also environments where it isn't. The
# ALLOW_LOOSE option disables GCBs strict checking of substitution usage,
# so that the build will still run if _GITHUB_DEPLOY_KEY_SRC is not defined.
substitution_option: ALLOW_LOOSE

steps:
# Run the integration tests. Actual content of this job depends on the changes
# Run the integration tests. Actual content of this job depends on the changes
# detected in the PR
- name: quay.io/gravitational/teleport-buildbox:teleport10
id: run-tests
dir: /workspace/.cloudbuild/scripts
entrypoint: bash
args:
args:
- -c
- |
go run ./cmd/integration-tests \
-target "$_BASE_BRANCH" \
-bucket test-logs \
-build $BUILD_ID \
-build "$BUILD_ID" \
-key-secret "$_GITHUB_DEPLOY_KEY_SRC" \
-a "test-logs/*.json"
-a "test-logs/*.json"
timeout: 25m
18 changes: 9 additions & 9 deletions .cloudbuild/ci/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
timeout: 25m

options:
machineType: 'E2_HIGHCPU_32'
# This build needs to run in environments where the _GITHUB_DEPLOY_KEY_SRC
machineType: E2_HIGHCPU_32

# This build needs to run in environments where the _GITHUB_DEPLOY_KEY_SRC
# substitution is defined, but also environments where it isn't. The
# ALLOW_LOOSE option disables GCBs strict checking of substitution usage,
# so that the build will still run if _GITHUB_DEPLOY_KEY_SRC is not defined.
substitution_option: ALLOW_LOOSE

steps:
# Run the unit tests. Actual content of this job depends on the changes
# Run the unit tests. Actual content of this job depends on the changes
# detected in the PR
- name: quay.io/gravitational/teleport-buildbox:teleport10
id: run-tests
dir: /workspace/.cloudbuild/scripts
entrypoint: bash
args:
entrypoint: bash
args:
- -c
- |
go run ./cmd/unit-tests \
-target $_BASE_BRANCH \
-target "$_BASE_BRANCH" \
-bucket test-logs \
-build $BUILD_ID \
-build "$BUILD_ID" \
-key-secret "$_GITHUB_DEPLOY_KEY_SRC" \
-a "test-logs/*.json"
timeout: 25m

0 comments on commit 809e60c

Please sign in to comment.