Skip to content

Commit

Permalink
Merge pull request #316 from CybercentreCanada/rename-var-patch
Browse files Browse the repository at this point in the history
Update build-container.yaml
  • Loading branch information
cccs-douglass authored Feb 7, 2025
2 parents ab63d58 + 2f9439b commit d390c67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pipelines/templates/jobs/build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
containerRegistry: cccstemp
- script: |
set -exv # Echo commands before they are run
if [[ "$TAG" == *stable* ]]; then export BUILD_TYPE=stable; else export BUILD_TYPE=latest; fi
if [[ "$TAG" == *stable* ]]; then export BUILD_KIND=stable; else export BUILD_KIND=latest; fi
export VERSION=${TAG/stable}
export VERSION=${VERSION/beta/b}
export SERIES="`expr $TAG : '\([0-9]\+\.[0-9]\+\.\)'`${BUILD_TYPE}"
export SERIES="`expr $TAG : '\([0-9]\+\.[0-9]\+\.\)'`${BUILD_KIND}"
if [[ "${{ parameters.workingDirectory }}" = *${{ parameters.component }} ]]
then
Expand All @@ -53,8 +53,8 @@ jobs:
docker build --build-arg base=$BASE \
--build-arg version=$VERSION \
--build-arg branch=$BUILD_TYPE \
-t $IMAGE:$TAG -t $IMAGE:$BUILD_TYPE -t $IMAGE:$SERIES \
--build-arg branch=$BUILD_KIND \
-t $IMAGE:$TAG -t $IMAGE:$BUILD_KIND -t $IMAGE:$SERIES \
-f ${{ parameters.dockerFile }} ${{ parameters.buildContext }}
docker push $IMAGE -q --all-tags
workingDirectory: ${{ parameters.workingDirectory }}
Expand Down

0 comments on commit d390c67

Please sign in to comment.