Skip to content

Commit 7caa0ec

Browse files
authored
Add environment configuration files to .gitignore (#2830)
* Add environment configuration files to .gitignore * Delete config files from repo * Refactor release cb file to delete config file lines from gitignore * Reorder env files * Add README for config files
1 parent ee3866e commit 7caa0ec

File tree

8 files changed

+34
-5
lines changed

8 files changed

+34
-5
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ gjf.out
1818
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1919
hs_err_pid*
2020

21+
# Environment-specific configuration files
22+
core/src/main/java/google/registry/config/files/nomulus-config-alpha.yaml
23+
core/src/main/java/google/registry/config/files/nomulus-config-crash.yaml
24+
core/src/main/java/google/registry/config/files/nomulus-config-production.yaml
25+
core/src/main/java/google/registry/config/files/nomulus-config-qa.yaml
26+
core/src/main/java/google/registry/config/files/nomulus-config-sandbox.yaml
27+
2128
######################################################################
2229
# Eclipse Ignores
2330

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Nomulus Environment Configuration
2+
3+
The configuration files for the different Nomulus environments are not included in this repository. To configure and run a specific environment, you will need to create the corresponding YAML configuration file in this directory.
4+
5+
The following is a list of the environment configuration files that you may need to create:
6+
7+
* `nomulus-config-alpha.yaml`
8+
* `nomulus-config-crash.yaml`
9+
* `nomulus-config-qa.yaml`
10+
* `nomulus-config-sandbox.yaml`
11+
* `nomulus-config-production.yaml`
12+
13+
Please create the relevant file for the environment you intend to use and populate it with the necessary configuration details.

core/src/main/java/google/registry/config/files/nomulus-config-alpha.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/main/java/google/registry/config/files/nomulus-config-crash.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/main/java/google/registry/config/files/nomulus-config-production.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/main/java/google/registry/config/files/nomulus-config-qa.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/main/java/google/registry/config/files/nomulus-config-sandbox.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

release/cloudbuild-release.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ steps:
4242
rm -rf .git && rm -rf nomulus-internal/.git
4343
cp -rf nomulus-internal/* .
4444
rm -rf nomulus-internal
45+
# Remove environment configs from .gitignore
46+
- name: 'gcr.io/cloud-builders/git'
47+
entrypoint: /bin/bash
48+
args:
49+
- -c
50+
- |
51+
set -e
52+
sed -i \
53+
-e '\#core/src/main/java/google/registry/config/files/nomulus-config-alpha.yaml#d' \
54+
-e '\#core/src/main/java/google/registry/config/files/nomulus-config-crash.yaml#d' \
55+
-e '\#core/src/main/java/google/registry/config/files/nomulus-config-production.yaml#d' \
56+
-e '\#core/src/main/java/google/registry/config/files/nomulus-config-qa.yaml#d' \
57+
-e '\#core/src/main/java/google/registry/config/files/nomulus-config-sandbox.yaml#d' \
58+
.gitignore
4559
# Build the builder image and pull the base images, them upload them to GCR.
4660
- name: 'gcr.io/cloud-builders/docker'
4761
entrypoint: /bin/bash

0 commit comments

Comments
 (0)