Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
switch order
Browse files Browse the repository at this point in the history
  • Loading branch information
yradsmikham committed Apr 14, 2020
1 parent 0c3899b commit 29a04e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/lib/fileutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,16 @@ export const serviceBuildAndUpdatePipeline = (
{
script: generateYamlScript([
// Iterate through serviceBuildVariables, export each variable, then append as build argument
`export BUILD_REPO_NAME=${BUILD_REPO_NAME(serviceName)}`,
`export IMAGE_TAG=${IMAGE_TAG}`,
`export IMAGE_NAME=$BUILD_REPO_NAME:$IMAGE_TAG`,
`echo "Image Name: $IMAGE_NAME"`,
`ACR_BUILD_BASE_COMMAND=("az acr build -r $(ACR_NAME) --image $IMAGE_NAME .")`,
`if [ -z "\${serviceBuildVariables}" ]; then echo "No build arguments found."; else SERVICE_BUILD_VARIABLES=$(echo \${serviceBuildVariables} | tr "," " " ) ; VARIABLES_ARRAY=(echo \${SERVICE_BUILD_VARIABLES}) ; for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done ; fi`,
//`SERVICE_BUILD_VARIABLES=$(echo ${serviceBuildVariables} | tr "," " " )`,
//`echo "Service Variables: $SERVICE_BUILD_VARIABLES`,
//`VARIABLES_ARRAY=(echo $SERVICE_BUILD_VARIABLES)`,
//`for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done`,
`export BUILD_REPO_NAME=${BUILD_REPO_NAME(serviceName)}`,
`export IMAGE_TAG=${IMAGE_TAG}`,
`export IMAGE_NAME=$BUILD_REPO_NAME:$IMAGE_TAG`,
`echo "Image Name: $IMAGE_NAME"`,
`cd ${relativeServiceForDockerfile}`,
//`echo "az acr build -r $(ACR_NAME) --image $IMAGE_NAME ."`,
//`az acr build -r $(ACR_NAME) --image $IMAGE_NAME .`,
Expand Down
8 changes: 4 additions & 4 deletions src/test/mockFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ export const createTestServiceBuildAndUpdatePipelineYaml = (
{
script: generateYamlScript([
// Iterate through serviceBuildVariables, export each variable, then append as build argument
`export BUILD_REPO_NAME=${BUILD_REPO_NAME(serviceName)}`,
`export IMAGE_TAG=${IMAGE_TAG}`,
`export IMAGE_NAME=$BUILD_REPO_NAME:$IMAGE_TAG`,
`echo "Image Name: $IMAGE_NAME"`,
`ACR_BUILD_BASE_COMMAND=("az acr build -r $(ACR_NAME) --image $IMAGE_NAME .")`,
`if [ -z "\${serviceBuildVariables}" ]; then echo "No build arguments found."; else SERVICE_BUILD_VARIABLES=$(echo \${serviceBuildVariables} | tr "," " " ) ; VARIABLES_ARRAY=(echo \${SERVICE_BUILD_VARIABLES}) ; for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done ; fi`,
//`SERVICE_BUILD_VARIABLES=$(echo \${serviceBuildVariables} | tr "," " " )`,
//`echo "Service Variables: $SERVICE_BUILD_VARIABLES`,
//`VARIABLES_ARRAY=(echo $SERVICE_BUILD_VARIABLES)`,
//`for i in \${VARIABLES_ARRAY[@]}; do export $i=\${i} ; ACR_BUILD_BASE_COMMAND+=" --build-arg $i=\${i}" ; done`,
`export BUILD_REPO_NAME=${BUILD_REPO_NAME(serviceName)}`,
`export IMAGE_TAG=${IMAGE_TAG}`,
`export IMAGE_NAME=$BUILD_REPO_NAME:$IMAGE_TAG`,
`echo "Image Name: $IMAGE_NAME"`,
`cd ${relativeServiceForDockerfile}`,
//`echo "az acr build -r $(ACR_NAME) --image $IMAGE_NAME ."`,
//`az acr build -r $(ACR_NAME) --image $IMAGE_NAME .`,
Expand Down

0 comments on commit 29a04e8

Please sign in to comment.