Skip to content

Commit

Permalink
[tool] fix latest tag incorrectly points to a lower semver (#2051)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumejparis authored Dec 12, 2024
1 parent 8f5aee5 commit cfa68d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ jobs:
- run:
name: Build Docker image openbas/platform
command: |
LATEST_VERSION=$(git describe --tags --abbrev=0)
LATEST_SEMANTIC_VERSION=$(git tag --sort=-v:refname | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
TAGS="-t openbas/platform:${CIRCLE_TAG}"
[ "$CIRCLE_TAG" = "$LATEST_VERSION" ] && TAGS="$TAGS -t openbas/platform:latest"
[ "$CIRCLE_TAG" = "$LATEST_SEMANTIC_VERSION" ] && TAGS="$TAGS -t openbas/platform:latest"
docker buildx build --progress=plain --platform $BUILDX_PLATFORMS -f Dockerfile_circleci $TAGS --push .
no_output_timeout: 30m
- slack/notify:
Expand Down

0 comments on commit cfa68d8

Please sign in to comment.