cloudflare/cloudflared

Public

mirrored from https://github.com/cloudflare/cloudflaredAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2023.7.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

build-packages-fips.sh

25lines · modecode

1VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
2echo $VERSION
3
4# This controls the directory the built artifacts go into
5export ARTIFACT_DIR=built_artifacts/
6mkdir -p $ARTIFACT_DIR
7
8arch=("amd64")
9export TARGET_ARCH=$arch
10export TARGET_OS=linux
11export FIPS=true
12# For BoringCrypto to link, we need CGO enabled. Otherwise compilation fails.
13export CGO_ENABLED=1
14
15make cloudflared-deb
16mv cloudflared-fips\_$VERSION\_$arch.deb $ARTIFACT_DIR/cloudflared-fips-linux-$arch.deb
17
18# rpm packages invert the - and _ and use x86_64 instead of amd64.
19RPMVERSION=$(echo $VERSION|sed -r 's/-/_/g')
20RPMARCH="x86_64"
21make cloudflared-rpm
22mv cloudflared-fips-$RPMVERSION-1.$RPMARCH.rpm $ARTIFACT_DIR/cloudflared-fips-linux-$RPMARCH.rpm
23
24# finally move the linux binary as well.
25mv ./cloudflared $ARTIFACT_DIR/cloudflared-fips-linux-$arch