Skip to content

Commit d390c67

Browse files
Merge pull request #316 from CybercentreCanada/rename-var-patch
Update build-container.yaml
2 parents ab63d58 + 2f9439b commit d390c67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pipelines/templates/jobs/build-container.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
containerRegistry: cccstemp
3939
- script: |
4040
set -exv # Echo commands before they are run
41-
if [[ "$TAG" == *stable* ]]; then export BUILD_TYPE=stable; else export BUILD_TYPE=latest; fi
41+
if [[ "$TAG" == *stable* ]]; then export BUILD_KIND=stable; else export BUILD_KIND=latest; fi
4242
export VERSION=${TAG/stable}
4343
export VERSION=${VERSION/beta/b}
44-
export SERIES="`expr $TAG : '\([0-9]\+\.[0-9]\+\.\)'`${BUILD_TYPE}"
44+
export SERIES="`expr $TAG : '\([0-9]\+\.[0-9]\+\.\)'`${BUILD_KIND}"
4545
4646
if [[ "${{ parameters.workingDirectory }}" = *${{ parameters.component }} ]]
4747
then
@@ -53,8 +53,8 @@ jobs:
5353
5454
docker build --build-arg base=$BASE \
5555
--build-arg version=$VERSION \
56-
--build-arg branch=$BUILD_TYPE \
57-
-t $IMAGE:$TAG -t $IMAGE:$BUILD_TYPE -t $IMAGE:$SERIES \
56+
--build-arg branch=$BUILD_KIND \
57+
-t $IMAGE:$TAG -t $IMAGE:$BUILD_KIND -t $IMAGE:$SERIES \
5858
-f ${{ parameters.dockerFile }} ${{ parameters.buildContext }}
5959
docker push $IMAGE -q --all-tags
6060
workingDirectory: ${{ parameters.workingDirectory }}

0 commit comments

Comments
 (0)