Skip to content

Commit

Permalink
Fix up branch mode building for gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nolim1t committed Nov 20, 2020
1 parent 0fcfaac commit cd49a76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@ build:buildx-tags-or-branch:
echo "Not building by tag as CI_COMMIT_TAG is empty"
fi
if [ ! -z $CI_COMMIT_BRANCH ]; then
echo "Building $CI_COMMIT_BRANCH (branch mode)"
echo "Building $CI_COMMIT_BRANCH (branch mode - pick latest version, don't use VERSION=)"
echo "Repo to push to $CI_APPLICATION_REPOSITORY:$CI_COMMIT_SHORT_SHA"
docker buildx build \
--platform $CI_BUILDX_ARCHS \
--build-arg VERSION=$CI_COMMIT_SHORT_SHA \
--progress plain --pull \
-t "$CI_APPLICATION_REPOSITORY:$CI_COMMIT_SHORT_SHA" --push \
.
Expand Down

0 comments on commit cd49a76

Please sign in to comment.