mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
new file: projects/microsoft.com/azure-storage-azcopy/package.yml
This commit is contained in:
parent
39a0581ce3
commit
bf0f9ede67
1 changed files with 30 additions and 0 deletions
30
projects/microsoft.com/azure-storage-azcopy/package.yml
Normal file
30
projects/microsoft.com/azure-storage-azcopy/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
distributable:
|
||||
url: git+https://github.com/Azure/azure-storage-azcopy.git
|
||||
ref: ${{version.tag}}
|
||||
|
||||
versions:
|
||||
github: Azure/azure-storage-azcopy
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '>=1.19'
|
||||
script:
|
||||
go build $ARGS -ldflags="$LDFLAGS"
|
||||
env:
|
||||
ARGS:
|
||||
- -trimpath
|
||||
- -o={{prefix}}/bin/azcopy
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
provides:
|
||||
- bin/azcopy
|
||||
|
||||
test:
|
||||
- azcopy --version | grep {{version}}
|
||||
- azcopy list https://storageaccountname.blob.core.windows.net/containername/ > output.txt || true
|
||||
- cat output.txt | grep 'Login Credentials missing'
|
Loading…
Reference in a new issue