8000 Fix: filesystem e2e flakiness (#8362) · cchalc/python-docs-samples@a18c139 · GitHub
[go: up one dir, main page]

Skip to content

Commit a18c139

Browse files
Fix: filesystem e2e flakiness (GoogleCloudPlatform#8362)
* cloudbuild docker build step * docker push step to AR * step 3 deploy to cloud run * use dynamic substitution * formatting * happy new year * alpha => beta * Update run/filesystem/cloudbuild.yaml Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
1 parent 23c8fca commit a18c139

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

run/filesystem/cloudbuild.yaml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,31 @@
1010
# limitations under the License.
1111

1212
steps:
13+
- id: "Docker build"
14+
name: "gcr.io/cloud-builders/docker"
15+
args:
16+
["build", "-t", "${_AR_REPO_URL}/filesystem-e2e-test:${BUILD_ID}", "."]
17+
- id: "Docker push to Artifact Registry"
18+
name: "gcr.io/cloud-builders/docker"
19+
args: ["push", "${_AR_REPO_URL}/filesystem-e2e-test:${BUILD_ID}"]
1320
- id: "Deploy to Cloud Run"
1421
name: "gcr.io/cloud-builders/gcloud:latest"
15-
entrypoint: /bin/bash
1622
args:
17-
- "-c"
18-
- |
19-
./retry.sh "gcloud alpha run deploy ${_SERVICE_NAME} \
20-
--source . \
21-
--execution-environment gen2 \
22-
--vpc-connector ${_CONNECTOR} \
23-
--update-env-vars FILESTORE_IP_ADDRESS=${_FILESTORE_IP_ADDRESS},FILE_SHARE_NAME=${_FILESHARE} \
24-
--region ${_DEPLOY_REGION} \
25-
--no-allow-unauthenticated"
23+
- beta
24+
- run
25+
- deploy
26+
- ${_SERVICE_NAME}
27+
- --image=${_AR_REPO_URL}/filesystem-e2e-test:${BUILD_ID}
28+
- --execution-environment=gen2
29+
- --vpc-connector=${_CONNECTOR}
30+
- --update-env-vars=FILESTORE_IP_ADDRESS=${_FILESTORE_IP_ADDRESS},FILE_SHARE_NAME=${_FILESHARE}
31+
- --region=${_DEPLOY_REGION}
32+
- --no-allow-unauthenticated
2633

2734
substitutions:
28-
_SERVICE_NAME: filesystem
2935
_DEPLOY_REGION: us-central1
3036
_FILESHARE: vol1
31-
_CONNECTOR: my-run-connector
32-
_FILESTORE_IP_ADDRESS: 0.0.0.0
37+
_AR_REPO_URL: us-central1-docker.pkg.dev/${PROJECT_ID}/cloud-run-source-deploy
38+
39+
options:
40+
dynamic_substitutions: true

0 commit comments

Comments
 (0)
0