mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
Upload the tool jar to GCS
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=250496565
This commit is contained in:
parent
5c127b8020
commit
538c659609
2 changed files with 33 additions and 16 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
if [ $# -ne 2 ];
|
||||
then
|
||||
echo "Usage: $0 alpha|crash|sandbox|production <destination>"
|
||||
echo "Usage: $0 alpha|crash|sandbox|production|tool <destination>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -27,22 +27,35 @@ environment="$1"
|
|||
dest="$2/$1"
|
||||
gcs_prefix="storage.googleapis.com/domain-registry-maven-repository"
|
||||
|
||||
cd gradle
|
||||
./gradlew clean stage -Penvironment="${environment}" \
|
||||
-PmavenUrl=https://"${gcs_prefix}"/maven \
|
||||
-PpluginsUrl=https://"${gcs_prefix}"/plugins
|
||||
cd -
|
||||
if [ "${environment}" == tool ]
|
||||
then
|
||||
mkdir -p "${dest}"
|
||||
|
||||
mkdir -p "${dest}"
|
||||
cd gradle
|
||||
./gradlew clean :core:nomulus \
|
||||
-PmavenUrl=https://"${gcs_prefix}"/maven \
|
||||
-PpluginsUrl=https://"${gcs_prefix}"/plugins
|
||||
cd -
|
||||
|
||||
for service in default pubapi backend tools
|
||||
do
|
||||
mv gradle/services/"${service}"/build/staged-app "${dest}/${service}"
|
||||
done
|
||||
mv gradle/core/build/libs/nomulus.jar .
|
||||
else
|
||||
mkdir -p "${dest}"
|
||||
|
||||
mv gradle/core/build/resources/main/google/registry/env/common/META-INF \
|
||||
"${dest}/META-INF"
|
||||
cd gradle
|
||||
./gradlew clean stage -Penvironment="${environment}" \
|
||||
-PmavenUrl=https://"${gcs_prefix}"/maven \
|
||||
-PpluginsUrl=https://"${gcs_prefix}"/plugins
|
||||
cd -
|
||||
|
||||
cd "${dest}"
|
||||
tar cvf ../../"${environment}.tar" .
|
||||
cd -
|
||||
for service in default pubapi backend tools
|
||||
do
|
||||
mv gradle/services/"${service}"/build/staged-app "${dest}/${service}"
|
||||
done
|
||||
|
||||
mv gradle/core/build/resources/main/google/registry/env/common/META-INF \
|
||||
"${dest}/META-INF"
|
||||
|
||||
cd "${dest}"
|
||||
tar cvf ../../"${environment}.tar" .
|
||||
cd -
|
||||
fi
|
||||
|
|
|
@ -28,6 +28,9 @@ steps:
|
|||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['./gradlew', 'test', '-PskipDockerIncompatibleTests=true']
|
||||
dir: 'gradle'
|
||||
# Build the tool binary.
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['release/build_nomulus_for_env.sh', 'tool', 'nomulus']
|
||||
# Build and package the deployment files for alpha.
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['release/build_nomulus_for_env.sh', 'alpha', 'nomulus']
|
||||
|
@ -45,6 +48,7 @@ artifacts:
|
|||
objects:
|
||||
location: 'gs://${PROJECT_ID}-deploy/${TAG_NAME}'
|
||||
paths:
|
||||
- 'nomulus.jar'
|
||||
- 'alpha.tar'
|
||||
- 'crash.tar'
|
||||
- 'sandbox.tar'
|
||||
|
|
Loading…
Add table
Reference in a new issue