Skip to content

Commit 3ed291b

Browse files
committed
Reformat ci yml files
1 parent 63b8ef2 commit 3ed291b

File tree

10 files changed

+321
-321
lines changed

10 files changed

+321
-321
lines changed

.github/workflows/actions/build-upload-mithril-artifact/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
id: label
1818
shell: bash
1919
run: echo "short_sha=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT
20-
20+
2121
- name: Add commit short sha to Cargo.tomls version
2222
shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }}
2323
run: |

.github/workflows/actions/deploy-terraform-infrastructure/action.yml

Lines changed: 98 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,23 @@ inputs:
5858
mithril_signers:
5959
description: Mithril signers settings.
6060
required: true
61-
mithril_genesis_secret_key:
61+
mithril_genesis_secret_key:
6262
description: Mithril genesis secret key (only for test networks).
6363
required: false
64-
mithril_genesis_verification_key_url:
64+
mithril_genesis_verification_key_url:
6565
description: Mithril genesis verification key location.
6666
required: true
6767
mithril_era_reader_adapter_type:
6868
description: Mithril era reader adapter type.
6969
required: false
7070
default: "cardano-chain"
71-
mithril_era_reader_address_url:
71+
mithril_era_reader_address_url:
7272
description: Mithril era reader address location.
7373
required: true
74-
mithril_era_reader_verification_key_url:
74+
mithril_era_reader_verification_key_url:
7575
description: Mithril era reader verification key url.
7676
required: true
77-
mithril_era_reader_secret_key:
77+
mithril_era_reader_secret_key:
7878
description: Mithril era reader secret key (onlye for test networks).
7979
required: false
8080
mithril_aggregator_signed_entity_types:
@@ -88,46 +88,46 @@ inputs:
8888
description: Mithril aggregator CNAME field used for the snapshot CDN.
8989
required: false
9090
default: "false"
91-
mithril_aggregator_snapshot_compression_algorithm:
91+
mithril_aggregator_snapshot_compression_algorithm:
9292
description: Mithril aggregator snapshot compression algorithm.
9393
required: false
94-
mithril_aggregator_zstandard_parameters_level:
94+
mithril_aggregator_zstandard_parameters_level:
9595
description: Mithril aggregator snapshot zstandard compression level.
9696
required: false
97-
mithril_aggregator_zstandard_parameters_workers:
97+
mithril_aggregator_zstandard_parameters_workers:
9898
description: Mithril aggregator snapshot zstandard number of workers.
9999
required: false
100100
mithril_aggregator_cexplorer_pools_url:
101101
description: CExplorer url of the list of pools that is used by the mithril aggregator.
102102
required: false
103-
prometheus_auth_username:
103+
prometheus_auth_username:
104104
description: Prometheus metrics endpoint username.
105105
required: false
106-
prometheus_auth_password:
106+
prometheus_auth_password:
107107
description: Prometheus metrics endpoint password.
108108
required: false
109-
prometheus_ingest_host:
109+
prometheus_ingest_host:
110110
description: Prometheus ingester endpoint location.
111111
required: false
112-
prometheus_ingest_username:
112+
prometheus_ingest_username:
113113
description: Prometheus ingester endpoint username.
114114
required: false
115-
prometheus_ingest_password:
115+
prometheus_ingest_password:
116116
description: Prometheus ingester endpoint password.
117117
required: false
118-
loki_auth_username:
118+
loki_auth_username:
119119
description: Loki metrics endpoint username.
120120
required: false
121-
loki_auth_password:
121+
loki_auth_password:
122122
description: Loki metrics endpoint password.
123123
required: false
124-
loki_ingest_host:
124+
loki_ingest_host:
125125
description: Loki ingester endpoint location.
126126
required: false
127-
loki_ingest_username:
127+
loki_ingest_username:
128128
description: Loki ingester endpoint username.
129129
required: false
130-
loki_ingest_password:
130+
loki_ingest_password:
131131
description: Loki ingester endpoint password.
132132
required: false
133133

@@ -137,94 +137,94 @@ runs:
137137
- name: Checkout sources
138138
uses: actions/checkout@v4
139139

140-
- name: Prepare service account credentials
141-
shell: bash
142-
working-directory: mithril-infra
143-
run: |
144-
echo '${{ inputs.google_application_credentials}}' > ./google-application-credentials.json
145-
chmod u+x ./assets/tools/utils/google-credentials-public-key.sh
146-
./assets/tools/utils/google-credentials-public-key.sh ./google-application-credentials.json ./assets/ssh_keys curry
140+
- name: Prepare service account credentials
141+
shell: bash
142+
working-directory: mithril-infra
143+
run: |
144+
echo '${{ inputs.google_application_credentials}}' > ./google-application-credentials.json
145+
chmod u+x ./assets/tools/utils/google-credentials-public-key.sh
146+
./assets/tools/utils/google-credentials-public-key.sh ./google-application-credentials.json ./assets/ssh_keys curry
147147
148-
- name: Prepare terraform variables
149-
shell: bash
150-
working-directory: mithril-infra
151-
run: |
152-
cat > ./env.variables.tfvars << EOF
153-
environment_prefix = "${{ inputs.environment_prefix }}"
154-
cardano_network = "${{ inputs.cardano_network }}"
155-
cardano_image_id = "${{ inputs.cardano_node_version }}"
156-
cardano_image_registry = "${{ inputs.cardano_node_docker_registry }}"
157-
google_region = "${{ inputs.google_region }}"
158-
google_zone = "${{ inputs.google_zone }}"
159-
google_machine_type = "${{ inputs.google_machine_type }}"
160-
google_compute_instance_boot_disk_size = "${{ inputs.google_compute_instance_boot_disk_size }}"
161-
google_compute_instance_data_disk_size = "${{ inputs.google_compute_instance_data_disk_size }}"
162-
google_service_credentials_json_file = "./google-application-credentials.json"
163-
mithril_use_p2p_network = "${{ inputs.mithril_use_p2p_network }}"
164-
mithril_api_domain = "${{ inputs.mithril_api_domain }}"
165-
mithril_image_id = "${{ inputs.mithril_image_id }}"
166-
mithril_genesis_verification_key_url = "${{ inputs.mithril_genesis_verification_key_url }}"
167-
mithril_genesis_secret_key = "${{ inputs.mithril_genesis_secret_key }}"
168-
mithril_protocol_parameters = ${{ fromJSON(inputs.mithril_protocol_parameters) }}
169-
mithril_signers = ${{ fromJSON(inputs.mithril_signers) }}
170-
mithril_era_reader_adapter_type = "${{ inputs.mithril_era_reader_adapter_type }}"
171-
mithril_era_reader_address_url = "${{ inputs.mithril_era_reader_address_url }}"
172-
mithril_era_reader_verification_key_url = "${{ inputs.mithril_era_reader_verification_key_url }}"
173-
mithril_era_reader_secret_key = "${{ inputs.mithril_era_reader_secret_key }}"
174-
mithril_aggregator_signed_entity_types = "${{ inputs.mithril_aggregator_signed_entity_types }}"
175-
mithril_aggregator_cdn_cname = "${{ inputs.mithril_aggregator_cdn_cname }}"
176-
mithril_aggregator_snapshot_use_cdn_domain = ${{ inputs.mithril_aggregator_snapshot_use_cdn_domain }}
177-
mithril_aggregator_snapshot_compression_algorithm = "${{ inputs.mithril_aggregator_snapshot_compression_algorithm }}"
178-
mithril_aggregator_zstandard_parameters_level = "${{ inputs.mithril_aggregator_zstandard_parameters_level }}"
179-
mithril_aggregator_zstandard_parameters_workers = "${{ inputs.mithril_aggregator_zstandard_parameters_workers }}"
180-
mithril_aggregator_cexplorer_pools_url = "${{ inputs.mithril_aggregator_cexplorer_pools_url }}"
181-
prometheus_auth_username = "${{ inputs.prometheus_auth_username }}"
182-
prometheus_auth_password = "${{ inputs.prometheus_auth_password }}"
183-
prometheus_ingest_host = "${{ inputs.prometheus_ingest_host }}"
184-
prometheus_ingest_username = "${{ inputs.prometheus_ingest_username }}"
185-
prometheus_ingest_password = "${{ inputs.prometheus_ingest_password }}"
186-
loki_auth_username = "${{ inputs.loki_auth_username }}"
187-
loki_auth_password = "${{ inputs.loki_auth_password }}"
188-
loki_ingest_host = "${{ inputs.loki_ingest_host }}"
189-
loki_ingest_username = "${{ inputs.loki_ingest_username }}"
190-
loki_ingest_password = "${{ inputs.loki_ingest_password }}"
191-
EOF
192-
terraform fmt ./env.variables.tfvars
193-
cat ./env.variables.tfvars
148+
- name: Prepare terraform variables
149+
shell: bash
150+
working-directory: mithril-infra
151+
run: |
152+
cat > ./env.variables.tfvars << EOF
153+
environment_prefix = "${{ inputs.environment_prefix }}"
154+
cardano_network = "${{ inputs.cardano_network }}"
155+
cardano_image_id = "${{ inputs.cardano_node_version }}"
156+
cardano_image_registry = "${{ inputs.cardano_node_docker_registry }}"
157+
google_region = "${{ inputs.google_region }}"
158+
google_zone = "${{ inputs.google_zone }}"
159+
google_machine_type = "${{ inputs.google_machine_type }}"
160+
google_compute_instance_boot_disk_size = "${{ inputs.google_compute_instance_boot_disk_size }}"
161+
google_compute_instance_data_disk_size = "${{ inputs.google_compute_instance_data_disk_size }}"
162+
google_service_credentials_json_file = "./google-application-credentials.json"
163+
mithril_use_p2p_network = "${{ inputs.mithril_use_p2p_network }}"
164+
mithril_api_domain = "${{ inputs.mithril_api_domain }}"
165+
mithril_image_id = "${{ inputs.mithril_image_id }}"
166+
mithril_genesis_verification_key_url = "${{ inputs.mithril_genesis_verification_key_url }}"
167+
mithril_genesis_secret_key = "${{ inputs.mithril_genesis_secret_key }}"
168+
mithril_protocol_parameters = ${{ fromJSON(inputs.mithril_protocol_parameters) }}
169+
mithril_signers = ${{ fromJSON(inputs.mithril_signers) }}
170+
mithril_era_reader_adapter_type = "${{ inputs.mithril_era_reader_adapter_type }}"
171+
mithril_era_reader_address_url = "${{ inputs.mithril_era_reader_address_url }}"
172+
mithril_era_reader_verification_key_url = "${{ inputs.mithril_era_reader_verification_key_url }}"
173+
mithril_era_reader_secret_key = "${{ inputs.mithril_era_reader_secret_key }}"
174+
mithril_aggregator_signed_entity_types = "${{ inputs.mithril_aggregator_signed_entity_types }}"
175+
mithril_aggregator_cdn_cname = "${{ inputs.mithril_aggregator_cdn_cname }}"
176+
mithril_aggregator_snapshot_use_cdn_domain = ${{ inputs.mithril_aggregator_snapshot_use_cdn_domain }}
177+
mithril_aggregator_snapshot_compression_algorithm = "${{ inputs.mithril_aggregator_snapshot_compression_algorithm }}"
178+
mithril_aggregator_zstandard_parameters_level = "${{ inputs.mithril_aggregator_zstandard_parameters_level }}"
179+
mithril_aggregator_zstandard_parameters_workers = "${{ inputs.mithril_aggregator_zstandard_parameters_workers }}"
180+
mithril_aggregator_cexplorer_pools_url = "${{ inputs.mithril_aggregator_cexplorer_pools_url }}"
181+
prometheus_auth_username = "${{ inputs.prometheus_auth_username }}"
182+
prometheus_auth_password = "${{ inputs.prometheus_auth_password }}"
183+
prometheus_ingest_host = "${{ inputs.prometheus_ingest_host }}"
184+
prometheus_ingest_username = "${{ inputs.prometheus_ingest_username }}"
185+
prometheus_ingest_password = "${{ inputs.prometheus_ingest_password }}"
186+
loki_auth_username = "${{ inputs.loki_auth_username }}"
187+
loki_auth_password = "${{ inputs.loki_auth_password }}"
188+
loki_ingest_host = "${{ inputs.loki_ingest_host }}"
189+
loki_ingest_username = "${{ inputs.loki_ingest_username }}"
190+
loki_ingest_password = "${{ inputs.loki_ingest_password }}"
191+
EOF
192+
terraform fmt ./env.variables.tfvars
193+
cat ./env.variables.tfvars
194194
195195
- name: Setup Terraform
196196
uses: hashicorp/setup-terraform@v3
197197
with:
198198
terraform_wrapper: false
199199

200-
- name: Init Terraform
201-
shell: bash
202-
working-directory: mithril-infra
203-
run: |
204-
GOOGLE_APPLICATION_CREDENTIALS=./google-application-credentials.json terraform init -backend-config="bucket=${{ inputs.terraform_backend_bucket }}" -backend-config="prefix=terraform/mithril-${{ inputs.environment }}" -upgrade
200+
- name: Init Terraform
201+
shell: bash
202+
working-directory: mithril-infra
203+
run: |
204+
GOOGLE_APPLICATION_CREDENTIALS=./google-application-credentials.json terraform init -backend-config="bucket=${{ inputs.terraform_backend_bucket }}" -backend-config="prefix=terraform/mithril-${{ inputs.environment }}" -upgrade
205205
206-
- name: Check Terraform
207-
shell: bash
208-
working-directory: mithril-infra
209-
run: terraform fmt -check
206+
- name: Check Terraform
207+
shell: bash
208+
working-directory: mithril-infra
209+
run: terraform fmt -check
210210

211-
- name: Terraform Plan
212-
if: inputs.dry_run == 'true'
213-
shell: bash
214-
working-directory: mithril-infra
215-
run: |
216-
GOOGLE_APPLICATION_CREDENTIALS=./google-application-credentials.json terraform plan --var-file=./env.variables.tfvars
211+
- name: Terraform Plan
212+
if: inputs.dry_run == 'true'
213+
shell: bash
214+
working-directory: mithril-infra
215+
run: |
216+
GOOGLE_APPLICATION_CREDENTIALS=./google-application-credentials.json terraform plan --var-file=./env.variables.tfvars
217217
218-
- name: Terraform Apply
219-
shell: bash
220-
working-directory: mithril-infra
221-
if: inputs.dry_run == 'false'
222-
run: |
223-
GOOGLE_APPLICATION_CREDENTIALS=./google-application-credentials.json terraform apply -auto-approve --var-file=./env.variables.tfvars
218+
- name: Terraform Apply
219+
shell: bash
220+
working-directory: mithril-infra
221+
if: inputs.dry_run == 'false'
222+
run: |
223+
GOOGLE_APPLICATION_CREDENTIALS=./google-application-credentials.json terraform apply -auto-approve --var-file=./env.variables.tfvars
224224
225-
- name: Cleanup
226-
shell: bash
227-
working-directory: mithril-infra
228-
run: |
229-
rm -f ./env.variables.tfvars
230-
rm -f ./google-application-credentials.json
225+
- name: Cleanup
226+
shell: bash
227+
working-directory: mithril-infra
228+
run: |
229+
rm -f ./env.variables.tfvars
230+
rm -f ./google-application-credentials.json

0 commit comments

Comments
 (0)