@leverege/build-tools 2.88.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.88.1",
3
+ "version": "2.89.0",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -60,7 +60,7 @@
60
60
  "snapshot-cnpg": "src/snapshot-cnpg.mjs",
61
61
  "tag-release": "src/tag-release.mjs",
62
62
  "unleash": "src/unleash.mjs",
63
- "upload-model": "src/upload_model.sh"
63
+ "upload-model": "src/upload-model.sh"
64
64
  },
65
65
  "author": "Leverege Devs",
66
66
  "license": "SEE LICENSE IN LICENSE.md",
@@ -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
@@ -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"