mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
+google.com/gcloud (#4459)
* new file: projects/google.com/gcloud/package.yml * wip * gcloud requires authentication * . * vendored
This commit is contained in:
parent
b0ca45042c
commit
45ba1857c3
1 changed files with 51 additions and 0 deletions
51
projects/google.com/gcloud/package.yml
Normal file
51
projects/google.com/gcloud/package.yml
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
warnings: vendored
|
||||||
|
|
||||||
|
versions:
|
||||||
|
url: https://cloud.google.com/sdk/docs/install-sdk
|
||||||
|
match: /google-cloud-cli-\d+\.\d+\.\d+-darwin-arm\.tar\.gz/
|
||||||
|
strip:
|
||||||
|
- /^google-cloud-cli-/
|
||||||
|
- /-darwin-arm\.tar\.gz$/
|
||||||
|
dependencies:
|
||||||
|
python.org: ^3.11
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
curl.se: '*'
|
||||||
|
script:
|
||||||
|
- mkdir -p {{prefix}}/libexec
|
||||||
|
- curl -L $DISTRIBUTABLE_URL | tar -xz --strip-components=1
|
||||||
|
- ./install.sh $ARGS
|
||||||
|
- cp -r .install bin lib platform {{prefix}}/libexec/
|
||||||
|
- run: |
|
||||||
|
ln -s ../libexec/bin/gcloud gcloud
|
||||||
|
ln -s ../libexec/bin/gsutil gsutil
|
||||||
|
ln -s ../libexec/bin/bq bq
|
||||||
|
ln -s ../libexec/bin/anthoscli anthoscli
|
||||||
|
ln -s ../libexec/bin/docker-creditnail-gcloud docker-creditnail-gcloud
|
||||||
|
working-directory: ${{prefix}}/bin
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- --usage-reporting false
|
||||||
|
- --command-completion false
|
||||||
|
- --path-update false
|
||||||
|
- --quiet
|
||||||
|
- --install-python false
|
||||||
|
linux/aarch64:
|
||||||
|
DISTRIBUTABLE_URL: https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-{{version}}-linux-arm.tar.gz
|
||||||
|
linux/x86-64:
|
||||||
|
DISTRIBUTABLE_URL: https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-{{version}}-linux-x86_64.tar.gz
|
||||||
|
darwin/aarch64:
|
||||||
|
DISTRIBUTABLE_URL: https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-{{version}}-darwin-arm.tar.gz
|
||||||
|
darwin/x86-64:
|
||||||
|
DISTRIBUTABLE_URL: https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-{{version}}-darwin-x86_64.tar.gz
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/gcloud
|
||||||
|
- bin/gsutil
|
||||||
|
- bin/bq
|
||||||
|
- bin/anthoscli
|
||||||
|
|
||||||
|
test:
|
||||||
|
- gcloud --version | grep {{version}}
|
||||||
|
# for more tests we need to authenticate with a service account
|
Loading…
Reference in a new issue