2024-01-21 16:00:09 +03:00
|
|
|
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'
|
2024-01-29 23:24:59 +03:00
|
|
|
script: go build $ARGS -ldflags="$LDFLAGS"
|
2024-01-21 16:00:09 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -trimpath
|
|
|
|
- -o={{prefix}}/bin/azcopy
|
|
|
|
LDFLAGS:
|
|
|
|
- -s
|
|
|
|
- -w
|
|
|
|
linux:
|
|
|
|
LDFLAGS:
|
|
|
|
- -buildmode=pie
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/azcopy
|
|
|
|
|
|
|
|
test:
|
|
|
|
- azcopy --version | grep {{version}}
|
2024-01-29 23:53:39 +03:00
|
|
|
# FIXME: these hang forever on GHA linux+x86-64 runners...
|
|
|
|
- run: exit 0
|
|
|
|
if: linux/x86-64
|
|
|
|
|
2024-01-29 23:24:59 +03:00
|
|
|
- azcopy list https://storageaccountname.blob.core.windows.net/containername/ || true
|
2024-01-21 16:00:09 +03:00
|
|
|
- azcopy list https://storageaccountname.blob.core.windows.net/containername/ > output.txt || true
|
2024-01-29 23:24:59 +03:00
|
|
|
- run: cat output.txt | grep 'Login Credentials missing'
|
|
|
|
if: '<10.23'
|
|
|
|
- run: cat output.txt | grep 'This request is not authorized to perform this operation'
|
|
|
|
if: '>=10.23'
|