Skip to content

Commit cd49a76

Browse files
committed
Fix up branch mode building for gitlab CI
1 parent 0fcfaac commit cd49a76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ build:buildx-tags-or-branch:
115115
echo "Not building by tag as CI_COMMIT_TAG is empty"
116116
fi
117117
if [ ! -z $CI_COMMIT_BRANCH ]; then
118-
echo "Building $CI_COMMIT_BRANCH (branch mode)"
118+
echo "Building $CI_COMMIT_BRANCH (branch mode - pick latest version, don't use VERSION=)"
119119
echo "Repo to push to $CI_APPLICATION_REPOSITORY:$CI_COMMIT_SHORT_SHA"
120120
docker buildx build \
121121
--platform $CI_BUILDX_ARCHS \
122-
--build-arg VERSION=$CI_COMMIT_SHORT_SHA \
123122
--progress plain --pull \
124123
-t "$CI_APPLICATION_REPOSITORY:$CI_COMMIT_SHORT_SHA" --push \
125124
.

0 commit comments

Comments
 (0)