From f401a5cad66ae5edda8dd97e91efbdbeec91d1d1 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Tue, 11 May 2021 22:06:15 +0000 Subject: [PATCH] use substitution vars --- cloudbuild.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index df88bd1e..2e558b35 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -17,16 +17,16 @@ steps: id: build-test-server args: - build - - --tag=gcr.io/$PROJECT_ID/opentelemetry-operations-python-e2e-test-server:$SHORT_SHA + - --tag=$_TEST_SERVER_IMAGE - --file=e2e-test-server/Dockerfile - . - name: docker id: push-test-server-image args: - push - - gcr.io/$PROJECT_ID/opentelemetry-operations-python-e2e-test-server:$SHORT_SHA + - $_TEST_SERVER_IMAGE - - name: gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-e2e-testing:$_TEST_SERVER_TAG + - name: $_TEST_RUNNER_IMAGE id: run-tests dir: / env: @@ -38,6 +38,9 @@ steps: logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs substitutions: - _TEST_SERVER_TAG: 0.5.11 + _TEST_RUNNER_IMAGE: gcr.io/opentelemetry-ops-e2e/opentelemetry-operations-e2e-testing:0.5.12 + _TEST_SERVER_IMAGE: gcr.io/$PROJECT_ID/opentelemetry-operations-python-e2e-test-server:$SHORT_SHA +options: + dynamic_substitutions: true images: - gcr.io/$PROJECT_ID/opentelemetry-operations-python-e2e-test-server:$SHORT_SHA