refactor: change default logs bucket for cloudbuild cicd (#161)

This commit is contained in:
Brandon Keiji 2025-04-25 00:40:23 +00:00 committed by GitHub
parent 8cf3e1611e
commit 7ea3dff49c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 7 deletions

View File

@ -1,24 +1,31 @@
steps:
# Install dependencies
- name: 'gcr.io/cloud-builders/npm'
- name: 'node'
entrypoint: 'npm'
args: ['install']
# Run prerelease versioning script across workspaces with dynamic version
- name: 'gcr.io/cloud-builders/npm'
- name: 'node'
entrypoint: 'bash'
args:
- '-c'
- |
npm run prerelease:version --workspaces -- --suffix="$(date +%Y%m%d)-$_SHORT_SHA.$_BUILD_ID"
npm run prerelease:version --workspaces -- --suffix="$SHORT_SHA.$(date +%Y%m%d).$_REVISION"
# Run prerelease dependency script across workspaces
- name: 'gcr.io/cloud-builders/npm'
- name: 'node'
entrypoint: 'npm'
args: ['run', 'prerelease:deps', '--workspaces']
# Authenticate with our registry
- name: gcr.io/cloud-builders/npm
args: ['run', 'artifactregistry-login']
- name: 'node'
entrypoint: 'npm'
args: ['run', 'auth']
# Publish packages from workspaces with 'dogfood' tag
- name: 'gcr.io/cloud-builders/npm'
- name: 'node'
entrypoint: 'npm'
args: ['publish', '--tag=head', '--workspaces']
options:
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET