Skip to content

Commit bd9e020

Browse files
committed
TUN-8583: change final directory of artifacts
1 parent b03ea05 commit bd9e020

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.teamcity/package-windows.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ echo $VERSION
33

44
export TARGET_OS=windows
55
# This controls the directory the built artifacts go into
6-
export ARTIFACT_DIR=built_artifacts/
7-
mkdir -p $ARTIFACT_DIR
6+
export BUILT_ARTIFACT_DIR=built_artifacts/
7+
export FINAL_ARTIFACT_DIR=artifacts/
8+
mkdir -p $BUILT_ARTIFACT_DIR
9+
mkdir -p $FINAL_ARTIFACT_DIR
810
windowsArchs=("amd64" "386")
911
for arch in ${windowsArchs[@]}; do
1012
export TARGET_ARCH=$arch
1113
# Copy exe into final directory
12-
cp $ARTIFACT_DIR/cloudflared-windows-$arch.exe ./cloudflared.exe
14+
cp $BUILT_ARTIFACT_DIR/cloudflared-windows-$arch.exe ./cloudflared.exe
1315
make cloudflared-msi
1416
# Copy msi into final directory
15-
mv cloudflared-$VERSION-$arch.msi $ARTIFACT_DIR/cloudflared-windows-$arch.msi
17+
mv cloudflared-$VERSION-$arch.msi $FINAL_ARTIFACT_DIR/cloudflared-windows-$arch.msi
1618
done

build-packages-fips.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
33
echo $VERSION
44

55
# This controls the directory the built artifacts go into
6-
export ARTIFACT_DIR=built_artifacts/
6+
export ARTIFACT_DIR=artifacts/
77
mkdir -p $ARTIFACT_DIR
88

99
arch=("amd64")
@@ -23,4 +23,4 @@ make cloudflared-rpm
2323
mv cloudflared-fips-$RPMVERSION-1.$RPMARCH.rpm $ARTIFACT_DIR/cloudflared-fips-linux-$RPMARCH.rpm
2424

2525
# finally move the linux binary as well.
26-
mv ./cloudflared $ARTIFACT_DIR/cloudflared-fips-linux-$arch
26+
mv ./cloudflared $ARTIFACT_DIR/cloudflared-fips-linux-$arch

build-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export GOEXPERIMENT=noboringcrypto
77
export CGO_ENABLED=0
88

99
# This controls the directory the built artifacts go into
10-
export ARTIFACT_DIR=built_artifacts/
10+
export ARTIFACT_DIR=artifacts/
1111
mkdir -p $ARTIFACT_DIR
1212

1313
linuxArchs=("386" "amd64" "arm" "armhf" "arm64")

0 commit comments

Comments
 (0)