Skip to content

Commit 2ef14d6

Browse files
committed
fix(CI): Ensure correct Linux binary versioning
1 parent 7ce61bf commit 2ef14d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ jobs:
9494
name: Deploy GitHub release and DockerHub image (only for master)
9595
command: |
9696
make release
97+
98+
EXPECTED_RELEASE=$(cat dist/release/TAG)
99+
ACTUAL_RELEASE=$(./dist/assets/lstags-linux/lstags --version | cut -d" " -f2)
100+
if [ "${ACTUAL_RELEASE}" != "${EXPECTED_RELEASE}" ]; then
101+
echo "Release versioning is inconsistent (expected: ${EXPECTED_RELEASE} / actual: ${ACTUAL_RELEASE})" >>/dev/stderr
102+
exit 1
103+
fi
104+
97105
if [ ${CIRCLE_BRANCH} == "master" ]; then
98106
make docker-image DOCKER_TAG=release
99107
make deploy

0 commit comments

Comments
 (0)