mirror of
https://github.com/google/nomulus
synced 2026-01-03 11:45:39 +00:00
Fix builds after refactor (#99)
Fixed both GAE and proxy builds after #90 refactored the code structure. Also removed now unnecessary chmod and chown from GCB scripts.
This commit is contained in:
@@ -16,11 +16,6 @@
|
||||
# To trigger a build automatically, follow the instructions below and add a trigger:
|
||||
# https://cloud.google.com/cloud-build/docs/running-builds/automate-builds
|
||||
steps:
|
||||
# Set permissions correctly. Not sure why it is necessary, but it is.
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['chown', '-R', 'root:root', '.']
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['chmod', '-R', '777', '.']
|
||||
# Create a directory to store the artifacts
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['mkdir', 'nomulus']
|
||||
|
||||
@@ -14,10 +14,6 @@
|
||||
# https://cloud.google.com/cloud-build/docs/running-builds/automate-builds
|
||||
steps:
|
||||
# Set permissions correctly. Not sure why it is necessary, but it is.
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['chown', '-R', 'root:root', '.']
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args: ['chmod', '-R', '777', '.']
|
||||
# Build the deploy jar.
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
args:
|
||||
@@ -59,7 +55,7 @@ artifacts:
|
||||
location: 'gs://${PROJECT_ID}-deploy/${TAG_NAME}'
|
||||
# This cannot be regexs because of how Spinnaker constructs artifact paths.
|
||||
paths:
|
||||
- 'java/google/registry/proxy/kubernetes/proxy-*.yaml'
|
||||
- 'proxy/src/main/java/google/registry/proxy/kubernetes/proxy-*.yaml'
|
||||
- 'release/cloudbuild-tag.yaml'
|
||||
timeout: 3600s
|
||||
options:
|
||||
|
||||
@@ -67,7 +67,7 @@ steps:
|
||||
sed -i s%distroless/java%${PROJECT_ID}/base@$base_digest% proxy/Dockerfile
|
||||
sed -i s/builder:latest/builder@$builder_digest/g release/cloudbuild-proxy.yaml
|
||||
sed -i s/builder:latest/builder@$builder_digest/g release/cloudbuild-nomulus.yaml
|
||||
sed -i s/GCP_PROJECT/${PROJECT_ID}/ java/google/registry/proxy/kubernetes/proxy-*.yaml
|
||||
sed -i s/GCP_PROJECT/${PROJECT_ID}/ proxy/src/main/java/google/registry/proxy/kubernetes/proxy-*.yaml
|
||||
sed -i s/'$${TAG_NAME}'/${TAG_NAME}/g release/cloudbuild-sync.yaml
|
||||
# Upload the gradle binary to GCS if it does not exist and point URL in gradle wrapper to it.
|
||||
- name: 'gcr.io/cloud-builders/gsutil'
|
||||
|
||||
Reference in New Issue
Block a user