Skip to content

Commit

Permalink
test linux tar.gz creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dphulkar-msft committed Jun 13, 2024
1 parent 6907f4a commit 30e7221
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions release-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,15 @@ stages:
displayName: "Remove binaries from staging directory"
- script: |
sudo mkdir -p /pkgDirAmd64/usr/bin/
sudo cp NOTICE.txt /pkgDirAmd64/usr/bin/
sudo cp $(linux_amd64)/azcopy_linux_amd64 /pkgDirAmd64/usr/bin/
mkdir -p pkgDir/usr/bin/
cp NOTICE.txt pkgDir/usr/bin/
cp $(linux_amd64)/azcopy_linux_amd64 pkgDir/usr/bin/
cp NOTICE.txt $(linux_amd64)/
cp NOTICE.txt $(linux_se_amd64)/
displayName: 'Copy required files'
- script: |
sudo ls -lRt /pkgDirAmd64/usr/bin/
sudo ls -lRt pkgDir/usr/bin/
displayName: 'List the files'
- script: |
Expand Down Expand Up @@ -444,23 +444,23 @@ stages:
# using fpm tool for packaging of our binary & performing post-install operations
# for additional information about fpm refer https://fpm.readthedocs.io/en/v1.13.1/
- script: |
fpm -s dir -t deb -n azcopy -C pkgDirAmd64/ \
-v `./pkgDirAmd64/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3` \
fpm -s dir -t deb -n azcopy -C pkgDir/ \
-v `./pkgDir/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3` \
--maintainer "Azcopy v-Team <azcopyvteam@microsoft.com>" \
--url "https://github.com/Azure/azure-storage-azcopy" \
--description "A command-line utility that is used to copy data to and from containers and file shares in Azure Storage accounts"
mv ./azcopy*.deb ./azcopy-`./pkgDirAmd64/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3`.x86_64.deb
mv ./azcopy*.deb ./azcopy-`./pkgDir/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3`.x86_64.deb
cp ./azcopy*.deb $(Build.ArtifactStagingDirectory)
workingDirectory: $(root_dir)
displayName: 'Make AMD64 deb Package'
- script: |
fpm -s dir -t rpm -n azcopy --rpm-digest sha256 -C pkgDirAmd64/ \
-v `./pkgDirAmd64/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3` \
fpm -s dir -t rpm -n azcopy --rpm-digest sha256 -C pkgDir/ \
-v `./pkgDir/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3` \
--maintainer "Azcopy v-Team <azcopyvteam@microsoft.com>" \
--url "https://github.com/Azure/azure-storage-azcopy" \
--description "A command-line utility that is used to copy data to and from containers and file shares in Azure Storage accounts"
mv ./azcopy*.rpm ./azcopy-`./pkgDirAmd64/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3`.x86_64.rpm
mv ./azcopy*.rpm ./azcopy-`./pkgDir/usr/bin/azcopy_linux_amd64 --version | cut -d " " -f 3`.x86_64.rpm
cp ./azcopy*.rpm $(Build.ArtifactStagingDirectory)
workingDirectory: $(root_dir)
displayName: 'Make AMD64 rpm Package'
Expand Down Expand Up @@ -597,14 +597,14 @@ stages:
displayName: "Remove binaries from staging directory"
- script: |
sudo mkdir -p /pkgDirArm64/usr/bin/
sudo cp NOTICE.txt /pkgDirArm64/usr/bin/
sudo cp $(linux_arm64)/azcopy_linux_arm64 /pkgDirArm64/usr/bin/
mkdir -p pkgDir/usr/bin/
cp NOTICE.txt pkgDir/usr/bin/
cp $(linux_arm64)/azcopy_linux_arm64 pkgDir/usr/bin/
cp NOTICE.txt $(linux_se_arm64)/
displayName: 'Copy required files'
- script: |
sudo ls -lRt /pkgDirAmd64/usr/bin/
sudo ls -lRt pkgDir/usr/bin/
displayName: 'List the files'
- script: |
Expand Down Expand Up @@ -635,26 +635,23 @@ stages:
# for additional information about fpm refer https://fpm.readthedocs.io/en/v1.13.1/
# TODO: Add description
- script: |
fpm -s dir -t deb -n azcopy -C pkgDirArm64/ \
-v `./pkgDirArm64/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3` \
fpm -s dir -t deb -n azcopy -C pkgDir/ \
-v `./pkgDir/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3` \
--maintainer "Azcopy v-Team <azcopyvteam@microsoft.com>" \
--url "https://github.com/Azure/azure-storage-azcopy" \
--description "A command-line utility that is used to copy data to and from containers and file shares in Azure Storage accounts"
mv ./azcopy*.deb ./azcopy-`./pkgDirArm64/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3`.arm64.deb
mv ./azcopy*.deb ./azcopy-`./pkgDir/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3`.arm64.deb
cp ./azcopy*.deb $(Build.ArtifactStagingDirectory)
version = ./pkgDirArm64/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3
echo "Version : $version"
echo `./pkgDirArm64/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3`
workingDirectory: $(root_dir)
displayName: 'Make ARM64 deb Package'
- script: |
fpm -s dir -t rpm -n azcopy --rpm-digest sha256 -C pkgDirArm64/ \
-v `./pkgDirArm64/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3` \
fpm -s dir -t rpm -n azcopy --rpm-digest sha256 -C pkgDir/ \
-v `./pkgDir/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3` \
--maintainer "Azcopy v-Team <azcopyvteam@microsoft.com>" \
--url "https://github.com/Azure/azure-storage-azcopy" \
--description "A command-line utility that is used to copy data to and from containers and file shares in Azure Storage accounts"
mv ./azcopy*.rpm ./azcopy-`./pkgDirArm64/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3`.arm64.rpm
mv ./azcopy*.rpm ./azcopy-`./pkgDir/usr/bin/azcopy_linux_arm64 --version | cut -d " " -f 3`.arm64.rpm
cp ./azcopy*.rpm $(Build.ArtifactStagingDirectory)
workingDirectory: $(root_dir)
displayName: 'Make ARM64 rpm Package'
Expand Down

0 comments on commit 30e7221

Please sign in to comment.