fix(ci): use --tags to match non-annotated tags (#2814)

Currently tags used in the project are a mix of annotated and
non-annotated/lightweight tags. Without `--tags` flag `git describe`
will not take into account annotated tags.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-06-19 17:54:19 +02:00 committed by GitHub
parent 0c88d72d33
commit 317c83dc1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
library 'status-jenkins-lib@v1.8.9' library 'status-jenkins-lib@v1.8.17'
pipeline { pipeline {
agent { label 'linux' } agent { label 'linux' }
@ -68,7 +68,7 @@ pipeline {
"${params.IMAGE_NAME}:${params.IMAGE_TAG ?: env.GIT_COMMIT.take(8)}", "${params.IMAGE_NAME}:${params.IMAGE_TAG ?: env.GIT_COMMIT.take(8)}",
"--label=build='${env.BUILD_URL}' " + "--label=build='${env.BUILD_URL}' " +
"--label=commit='${git.commit()}' " + "--label=commit='${git.commit()}' " +
"--label=version='${git.describe()}' " + "--label=version='${git.describe('--tags')}' " +
"--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " + "--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " +
"--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " + "--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " +
"--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " + "--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " +