mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07: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 ];
|
if [ $# -ne 2 ];
|
||||||
then
|
then
|
||||||
echo "Usage: $0 alpha|crash|sandbox|production <destination>"
|
echo "Usage: $0 alpha|crash|sandbox|production|tool <destination>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -27,22 +27,35 @@ environment="$1"
|
||||||
dest="$2/$1"
|
dest="$2/$1"
|
||||||
gcs_prefix="storage.googleapis.com/domain-registry-maven-repository"
|
gcs_prefix="storage.googleapis.com/domain-registry-maven-repository"
|
||||||
|
|
||||||
cd gradle
|
if [ "${environment}" == tool ]
|
||||||
./gradlew clean stage -Penvironment="${environment}" \
|
then
|
||||||
-PmavenUrl=https://"${gcs_prefix}"/maven \
|
mkdir -p "${dest}"
|
||||||
-PpluginsUrl=https://"${gcs_prefix}"/plugins
|
|
||||||
cd -
|
|
||||||
|
|
||||||
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
|
mv gradle/core/build/libs/nomulus.jar .
|
||||||
do
|
else
|
||||||
mv gradle/services/"${service}"/build/staged-app "${dest}/${service}"
|
mkdir -p "${dest}"
|
||||||
done
|
|
||||||
|
|
||||||
mv gradle/core/build/resources/main/google/registry/env/common/META-INF \
|
cd gradle
|
||||||
"${dest}/META-INF"
|
./gradlew clean stage -Penvironment="${environment}" \
|
||||||
|
-PmavenUrl=https://"${gcs_prefix}"/maven \
|
||||||
|
-PpluginsUrl=https://"${gcs_prefix}"/plugins
|
||||||
|
cd -
|
||||||
|
|
||||||
cd "${dest}"
|
for service in default pubapi backend tools
|
||||||
tar cvf ../../"${environment}.tar" .
|
do
|
||||||
cd -
|
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'
|
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||||
args: ['./gradlew', 'test', '-PskipDockerIncompatibleTests=true']
|
args: ['./gradlew', 'test', '-PskipDockerIncompatibleTests=true']
|
||||||
dir: 'gradle'
|
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.
|
# Build and package the deployment files for alpha.
|
||||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||||
args: ['release/build_nomulus_for_env.sh', 'alpha', 'nomulus']
|
args: ['release/build_nomulus_for_env.sh', 'alpha', 'nomulus']
|
||||||
|
@ -45,6 +48,7 @@ artifacts:
|
||||||
objects:
|
objects:
|
||||||
location: 'gs://${PROJECT_ID}-deploy/${TAG_NAME}'
|
location: 'gs://${PROJECT_ID}-deploy/${TAG_NAME}'
|
||||||
paths:
|
paths:
|
||||||
|
- 'nomulus.jar'
|
||||||
- 'alpha.tar'
|
- 'alpha.tar'
|
||||||
- 'crash.tar'
|
- 'crash.tar'
|
||||||
- 'sandbox.tar'
|
- 'sandbox.tar'
|
||||||
|
|
Loading…
Add table
Reference in a new issue