cloudflare/cloudflared

Public

mirrored fromhttps://github.com/cloudflare/cloudflaredAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2026.5.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.ci/linux.gitlab-ci.yml

122lines · modecode

1.golang-inputs: &golang_inputs
2 runOnMR: true
3 runOnBranches: "^master$"
4 outputDir: artifacts
5 runner: linux-x86-8cpu-16gb
6 stage: build
7 golangVersion: "boring-1.26"
8 imageVersion: "3595-779e088c0ec4@sha256:a9825d640211b76915a60071e9bef3f73ad3572ce770c7c7dd36b3dd3687504c"
9 CGO_ENABLED: 1
10
11.default-packaging-job: &packaging-job-defaults
12 stage: package
13 needs:
14 - ci-image-get-image-ref
15 rules:
16 - !reference [.default-rules, run-on-master]
17 image: $BUILD_IMAGE
18 cache: {}
19 artifacts:
20 paths:
21 - artifacts/*
22
23include:
24 ###################
25 ### Linux Build ###
26 ###################
27 - component: $CI_SERVER_FQDN/cloudflare/ci/golang/boring-make@~latest
28 inputs:
29 <<: *golang_inputs
30 jobPrefix: linux-build
31 GOLANG_MAKE_TARGET: ci-build
32
33 ########################
34 ### Linux FIPS Build ###
35 ########################
36 - component: $CI_SERVER_FQDN/cloudflare/ci/golang/boring-make@~latest
37 inputs:
38 <<: *golang_inputs
39 jobPrefix: linux-fips-build
40 GOLANG_MAKE_TARGET: ci-fips-build
41
42 #################
43 ### Unit Tests ##
44 #################
45 - component: $CI_SERVER_FQDN/cloudflare/ci/golang/boring-make@~latest
46 inputs:
47 <<: *golang_inputs
48 stage: test
49 jobPrefix: test
50 GOLANG_MAKE_TARGET: ci-test
51
52 ######################
53 ### Unit Tests FIPS ##
54 ######################
55 - component: $CI_SERVER_FQDN/cloudflare/ci/golang/boring-make@~latest
56 inputs:
57 <<: *golang_inputs
58 stage: test
59 jobPrefix: test-fips
60 GOLANG_MAKE_TARGET: ci-fips-test
61
62 #################
63 ### Vuln Check ##
64 #################
65 - component: $CI_SERVER_FQDN/cloudflare/ci/golang/boring-make@~latest
66 inputs:
67 <<: *golang_inputs
68 runOnBranches: "^$"
69 stage: validate
70 jobPrefix: vulncheck
71 GOLANG_MAKE_TARGET: vulncheck
72
73#################################
74### Run Linux Component Tests ###
75#################################
76linux-component-tests: &linux-component-tests
77 stage: test
78 extends: .component-tests
79 needs:
80 - ci-image-get-image-ref
81 - linux-build-boring-make
82 script:
83 - ./.ci/scripts/component-tests.sh
84 variables: &component-tests-variables
85 CI: 1
86 COMPONENT_TESTS_CONFIG_CONTENT: Y2xvdWRmbGFyZWRfYmluYXJ5OiAuL2Nsb3VkZmxhcmVkCmNyZWRlbnRpYWxzX2ZpbGU6IGNyZWQuanNvbgpvcmlnaW5jZXJ0OiBjZXJ0LnBlbQp6b25lX2RvbWFpbjogYXJnb3R1bm5lbHRlc3QuY29tCnpvbmVfdGFnOiA0ODc5NmYxZTcwYmI3NjY5YzI5YmI1MWJhMjgyYmY2NQ==
87 tags:
88 - linux-x86-8cpu-16gb
89 artifacts:
90 reports:
91 junit: report.xml
92
93######################################
94### Run Linux FIPS Component Tests ###
95######################################
96linux-component-tests-fips:
97 <<: *linux-component-tests
98 needs:
99 - ci-image-get-image-ref
100 - linux-fips-build-boring-make
101 variables:
102 <<: *component-tests-variables
103 COMPONENT_TESTS_FIPS: 1
104
105################################
106####### Linux Packaging ########
107################################
108linux-packaging:
109 <<: *packaging-job-defaults
110 parallel:
111 matrix:
112 - ARCH: ["386", "amd64", "arm", "armhf", "arm64"]
113 script:
114 - ./.ci/scripts/linux/build-packages.sh ${ARCH}
115
116################################
117##### Linux FIPS Packaging #####
118################################
119linux-packaging-fips:
120 <<: *packaging-job-defaults
121 script:
122 - ./.ci/scripts/linux/build-packages-fips.sh
123