-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): use git describe for image version
This way we get both the full commit and the version, whether it's a proper release or not. Signed-off-by: Jakub Sokołowski <[email protected]>
- Loading branch information
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ LABEL maintainer="[email protected]" | |
LABEL source="https://github.com/waku-org/nwaku" | ||
LABEL description="Wakunode: Waku client" | ||
LABEL commit="unknown" | ||
LABEL version="unknown" | ||
|
||
# DevP2P, LibP2P, and JSON RPC ports | ||
EXPOSE 30303 60000 8545 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env groovy | ||
library '[email protected].6' | ||
library '[email protected].9' | ||
|
||
pipeline { | ||
agent { label 'linux' } | ||
|
@@ -66,7 +66,9 @@ pipeline { | |
steps { script { | ||
image = docker.build( | ||
"${params.IMAGE_NAME}:${params.IMAGE_TAG ?: env.GIT_COMMIT.take(8)}", | ||
"--label=commit='${env.GIT_COMMIT.take(8)}' " + | ||
"--label=build='${env.BUILD_URL}' " + | ||
"--label=commit='${git.commit()}' " + | ||
"--label=version='${git.describe()}' " + | ||
"--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " + | ||
"--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " + | ||
"--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " + | ||
|