mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-05 15:33:08 +00:00
ci: add commit as label to Docker image
Helps with debugging issues related to specific versions. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
0b7b033550
commit
263284978a
@ -3,7 +3,7 @@
|
||||
FROM alpine:3.12 AS nim-build
|
||||
|
||||
ARG NIM_PARAMS
|
||||
ARG MAKE_TARGET=wakunode
|
||||
ARG MAKE_TARGET=wakunode2
|
||||
|
||||
# Get build tools and required header files
|
||||
RUN apk add --no-cache bash git rust cargo build-base pcre-dev linux-headers
|
||||
@ -29,6 +29,7 @@ ARG MAKE_TARGET=wakunode2
|
||||
LABEL maintainer="jakub@status.im"
|
||||
LABEL source="https://github.com/status-im/nim-waku"
|
||||
LABEL description="Wakunode: Waku and Whisper client"
|
||||
LABEL commit="unknown"
|
||||
|
||||
# DevP2P, LibP2P, and JSON RPC ports
|
||||
EXPOSE 30303 60000 8545
|
||||
|
||||
@ -39,7 +39,8 @@ pipeline {
|
||||
stage('Build') {
|
||||
steps { script {
|
||||
image = docker.build(
|
||||
"${params.IMAGE_NAME}:${env.GIT_COMMIT.take(6)}",
|
||||
"${params.IMAGE_NAME}:${env.GIT_COMMIT.take(8)}",
|
||||
"--label=commit='${env.GIT_COMMIT.take(8)}' " +
|
||||
"--build-arg=MAKE_TARGET='${params.MAKE_TARGET}' " +
|
||||
"--build-arg=NIM_PARAMS='${params.NIM_PARAMS}' ."
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user