Skip to content

Commit f4f1b50

Browse files
committed
[SECCOMP-31582] - export globally
1 parent fb55854 commit f4f1b50

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile.common

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ common-unused:
197197
.PHONY: common-build
198198
common-build: promu
199199
@echo ">> building binaries"
200+
@env
200201
CGO_ENABLED=1 GOEXPERIMENT=boringcrypto $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES)
201202

202203
.PHONY: common-tarball

build/Jenkinsfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ pipeline {
1111
environment {
1212
registryCredential = 'jenkins-artifactory'
1313
ARTIFACTORY_URL = 'docker.internal.sysdig.com'
14+
CGO_ENABLED = '1'
15+
GOEXPERIMENT = 'boringcrypto'
1416
}
1517

1618
parameters {
1719
booleanParam(name: 'DRY_RUN', defaultValue: true, description: 'Perform a dry run (does not push images)')
1820
string(name: 'EXPORTER', defaultValue: "exporter", description: 'Exporter name')
1921
}
20-
22+
2123
stages {
2224
stage('Pull image from artifactory') {
2325
agent any
2426
steps {
2527
script {
26-
docker.withRegistry("https://${env.ARTIFACTORY_URL}", registryCredential) {
28+
docker.withRegistry("https://${env.ARTIFACTORY_URL}", registryCredential) {
2729
sh """docker pull ${env.ARTIFACTORY_URL}/${env.EXPORTER}:latest"""
2830
env.VERSION = sh(script:"""docker inspect --format '{{ index .Config.Labels "release" }}' ${env.ARTIFACTORY_URL}/${env.EXPORTER}:latest""", returnStdout: true).trim()
2931
echo "VERSION = ${env.VERSION}"
@@ -53,4 +55,4 @@ pipeline {
5355
}
5456
}
5557
} //stages
56-
}
58+
}

0 commit comments

Comments
 (0)