From bcd905f1ca5782d013dbf70d68f1634f367a6d20 Mon Sep 17 00:00:00 2001 From: Young Bu Park Date: Fri, 1 Nov 2019 14:02:02 -0700 Subject: [PATCH] Set default sample registry in ci (#95) --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1da96801..fa8b6ecf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,11 @@ jobs: run: python ./.github/scripts/get_release_version.py - name: Build docker image run: | + if [ -z "${{ env.SAMPLE_REGISTRY }}" ]; then + export SAMPLE_REGISTRY=docker.io/dapriosamples + echo "##[set-env name=SAMPLE_REGISTRY;]$SAMPLE_REGISTRY" + fi + SAMPLE_LIST=(2.hello-kubernetes 3.distributed-calculator 4.pub-sub 5.bindings) for sample in "${SAMPLE_LIST[@]}"; do @@ -46,4 +51,4 @@ jobs: pushd ${sample} make push popd - done \ No newline at end of file + done