Skip to content

Commit cf5be91

Browse files
committed
TUN-8129: Use the same build command between branch and release builds
1 parent 28685a5 commit cf5be91

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

build-packages-fips.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
23
echo $VERSION
34

build-packages.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
#!/bin/bash
12
VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
23
echo $VERSION
34

45
# Disable FIPS module in go-boring
56
export GOEXPERIMENT=noboringcrypto
7+
export CGO_ENABLED=0
68

79
# This controls the directory the built artifacts go into
810
export ARTIFACT_DIR=built_artifacts/

cfsetup.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,30 @@ buster: &buster
99
- *pinned_go
1010
- build-essential
1111
- gotest-to-teamcity
12+
- fakeroot
13+
- rubygem-fpm
14+
- rpm
15+
- libffi-dev
16+
- reprepro
17+
- createrepo
1218
pre-cache: &build_pre_cache
1319
- export GOCACHE=/cfsetup_build/.cache/go-build
1420
- go install golang.org/x/tools/cmd/goimports@latest
1521
post-cache:
16-
- export GOOS=linux
17-
- export GOARCH=amd64
18-
- make cloudflared
22+
# TODO: TUN-8126 this is temporary to make sure packages can be built before release
23+
- ./build-packages.sh
24+
# Build binary for component test
25+
- GOOS=linux GOARCH=amd64 make cloudflared
1926
build-fips:
2027
build_dir: *build_dir
2128
builddeps: *build_deps
2229
pre-cache: *build_pre_cache
2330
post-cache:
24-
- export GOOS=linux
25-
- export GOARCH=amd64
26-
- make cloudflared
2731
- export FIPS=true
32+
# TODO: TUN-8126 this is temporary to make sure packages can be built before release
33+
- ./build-packages-fips.sh
34+
# Build binary for component test
35+
- GOOS=linux GOARCH=amd64 make cloudflared
2836
cover:
2937
build_dir: *build_dir
3038
builddeps: *build_deps

0 commit comments

Comments
 (0)