@leverege/build-tools 2.88.2 → 2.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/chart-to-registry.mjs +2 -2
- package/src/helmup.sh +1 -1
- package/src/refresh-py-idx.sh +1 -1
package/package.json
CHANGED
|
@@ -106,12 +106,12 @@ debug( {
|
|
|
106
106
|
registryRepository,
|
|
107
107
|
ociPushEndpoint }, '<==Parsed package and chart' )
|
|
108
108
|
|
|
109
|
-
// gcloud auth print-access-token | helm registry login -u oauth2accesstoken \
|
|
109
|
+
// gcloud auth application-default print-access-token | helm registry login -u oauth2accesstoken \
|
|
110
110
|
// -p ${password} https://us-docker.pkg.dev
|
|
111
111
|
//
|
|
112
112
|
// Get the current access token and use it to login to the registry with helm.
|
|
113
113
|
try {
|
|
114
|
-
const accessToken = await shellCmd( 'gcloud auth print-access-token' )
|
|
114
|
+
const accessToken = await shellCmd( 'gcloud auth application-default print-access-token' )
|
|
115
115
|
// -p is frowned upon but using a pipe | is problematic with shellCmd (execa)
|
|
116
116
|
const registryLoginCommand = `helm registry login -u oauth2accesstoken -p ${accessToken}`
|
|
117
117
|
|
package/src/helmup.sh
CHANGED
|
@@ -12,7 +12,7 @@ REGISTRY_DOMAIN="us-docker.pkg.dev"
|
|
|
12
12
|
# open container initiative (oci) => https://opencontainers.org/
|
|
13
13
|
ARTIFACT_REGISTRY="oci://$REGISTRY_DOMAIN/leverege-registry"
|
|
14
14
|
# login to the registry in the background
|
|
15
|
-
gcloud auth print-access-token | helm registry login \
|
|
15
|
+
gcloud auth application-default print-access-token | helm registry login \
|
|
16
16
|
-u oauth2accesstoken --password-stdin $REGISTRY_DOMAIN &> $DEVNULL
|
|
17
17
|
|
|
18
18
|
# make sure we have a current npmrc file
|
package/src/refresh-py-idx.sh
CHANGED
|
@@ -11,7 +11,7 @@ exit 1
|
|
|
11
11
|
|
|
12
12
|
function leveregeBuildToolsRefreshPyIdx() {
|
|
13
13
|
# Execute gcloud command to get the token
|
|
14
|
-
local TOKEN=$(gcloud auth print-access-token)
|
|
14
|
+
local TOKEN=$(gcloud auth application-default print-access-token)
|
|
15
15
|
|
|
16
16
|
# Write to pip.conf
|
|
17
17
|
local PIP_CONFIG_DIR="$HOME/.config/pip"
|