1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Add environment support to the console build (#2539)

This commit is contained in:
Pavlo Tkach
2024-08-30 14:31:28 -04:00
committed by GitHub
parent 1765f4f0b4
commit ab5f6cc229
22 changed files with 164 additions and 83 deletions

View File

@@ -51,6 +51,7 @@ else
mv services/"${service}"/build/staged-app "${dest}/${service}"
done
./gradlew :console-webapp:buildConsoleWebapp -Pconfiguration="${environment}"
mkdir -p "${dest}/console" && cp -r console-webapp/staged/* "${dest}/console"
mv core/build/resources/main/google/registry/env/common/META-INF \

View File

@@ -18,18 +18,6 @@ steps:
'-PmavenUrl=gcs://domain-registry-maven-repository/maven',
'-PpluginsUrl=gcs://domain-registry-maven-repository/plugins'
]
# Build Registry Console
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
# Set home for Gradle caches. Must be consistent with last step below
# and ./build_nomulus_for_env.sh
env: [ 'GRADLE_USER_HOME=/workspace/cloudbuild-caches' ]
entrypoint: /bin/bash
args:
- -c
- |
set -e
./gradlew \
:console-webapp:buildConsoleWebappProd
# Build and package the deployment files for each environment, and the tool
# binary and image.
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
@@ -40,7 +28,7 @@ steps:
args:
- -c
- |
for _env in tool alpha crash sandbox production
for _env in tool alpha crash sandbox production
do
release/build_nomulus_for_env.sh $${_env} output
done