Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 0446c4e

Browse files
committed
Added gcloud
1 parent b1b8004 commit 0446c4e

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

renovate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,16 @@
18431843
"version: \"?(?<currentValue>.*?)\"?\\n"
18441844
]
18451845
},
1846+
{
1847+
"datasourceTemplate": "github-tags",
1848+
"depNameTemplate": "twistedpair/google-cloud-sdk",
1849+
"fileMatch": [
1850+
"^tools/gcloud/manifest.yaml$"
1851+
],
1852+
"matchStrings": [
1853+
"version: \"?(?<currentValue>.*?)\"?\\n"
1854+
]
1855+
},
18461856
{
18471857
"datasourceTemplate": "github-releases",
18481858
"depNameTemplate": "cli/cli",

tools/gcloud/Dockerfile.template

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/python:${ref} AS python
6+
FROM ghcr.io/nicholasdille/docker-setup/shiv:${ref} AS shiv
7+
8+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
9+
ARG name
10+
ARG version
11+
WORKDIR ${prefix}/opt/gcloud
12+
RUN <<EOF
13+
curl --silent --location --fail "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${version}-linux-${arch}.tar.gz" \
14+
| tar --extract --gzip --strip-components=1 --no-same-owner
15+
ln --symbolic --relative --force "${prefix}/opt/gcloud/bin/gcloud" "${prefix}${target}/bin/gcloud"
16+
ln --symbolic --relative --force "${prefix}/opt/gcloud/bin/bq" "${prefix}${target}/bin/bq"
17+
18+
cp "${prefix}/opt/gcloud/path.bash.inc" "${prefix}${target}/share/bash-completion/completions/foo"
19+
cp "${prefix}/opt/gcloud/path.fish.inc" "${prefix}${target}/share/fish/vendor_completions.d/foo.fish"
20+
cp "${prefix}/opt/gcloud/path.zsh.inc" "${prefix}${target}/share/zsh/vendor-completions/_foo"
21+
EOF

tools/gcloud/manifest.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: gcloud
2+
version: "429.0.0"
3+
check: ""
4+
build_dependencies:
5+
- python
6+
runtime_dependencies:
7+
- python
8+
platforms:
9+
- linux/amd64
10+
#- linux/arm64
11+
tags:
12+
- org/google
13+
- category/development
14+
- lang/python
15+
- type/cli
16+
homepage: https://cloud.google.com/sdk/docs
17+
description: Set of tools that you can use to manage resources and applications hosted on Google Cloud
18+
renovate:
19+
datasource: github-tags
20+
package: twistedpair/google-cloud-sdk

0 commit comments

Comments
 (0)