Skip to content

Commit

Permalink
chore: refining-env-file-generator (#71)
Browse files Browse the repository at this point in the history
* chore: refining-env-file-generator

* chore: temp setting algokit from feat branch
  • Loading branch information
aorumbayev authored Jul 8, 2024
1 parent 99af720 commit 0fee943
Show file tree
Hide file tree
Showing 31 changed files with 141 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
run: pipx install poetry

- name: Install algokit
run: pipx install git+https://github.com/algorandfoundation/algokit-cli.git@fix/copier-answers-lookup
run: pipx install git+https://github.com/algorandfoundation/algokit-cli.git@chore/patching-tests

- name: Run algokit localnet
run: algokit localnet start
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,32 @@ custom_network_name:
placeholder: "custom"
when: "{{ not use_generic_env and target_network == 'custom' }}"

is_localnet:
type: bool
help: Whether to deploy on localnet.
placeholder: "true"
default: "{{ target_network == 'localnet' and not use_generic_env }}"
when: 'false'

is_testnet:
type: bool
help: Whether to deploy on testnet.
placeholder: "true"
default: "{{ target_network == 'testnet' and not use_generic_env }}"
when: 'false'

is_mainnet:
type: bool
help: Whether to deploy on mainnet.
placeholder: "true"
default: "{{ target_network == 'mainnet' and not use_generic_env }}"
when: 'false'

is_customnet:
type: bool
help: Whether to deploy on custom network.
placeholder: "true"
default: "{{ target_network == 'custom' and not use_generic_env }}"
when: 'false'

_templates_suffix: ".j2"
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,32 @@ custom_network_name:
placeholder: "custom"
when: "{{ not use_generic_env and target_network == 'custom' }}"

is_localnet:
type: bool
help: Whether to deploy on localnet.
placeholder: "true"
default: "{{ target_network == 'localnet' and not use_generic_env }}"
when: 'false'

is_testnet:
type: bool
help: Whether to deploy on testnet.
placeholder: "true"
default: "{{ target_network == 'testnet' and not use_generic_env }}"
when: 'false'

is_mainnet:
type: bool
help: Whether to deploy on mainnet.
placeholder: "true"
default: "{{ target_network == 'mainnet' and not use_generic_env }}"
when: 'false'

is_customnet:
type: bool
help: Whether to deploy on custom network.
placeholder: "true"
default: "{{ target_network == 'custom' and not use_generic_env }}"
when: 'false'

_templates_suffix: ".j2"
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,32 @@ custom_network_name:
placeholder: "custom"
when: "{{ not use_generic_env and target_network == 'custom' }}"

is_localnet:
type: bool
help: Whether to deploy on localnet.
placeholder: "true"
default: "{{ target_network == 'localnet' and not use_generic_env }}"
when: 'false'

is_testnet:
type: bool
help: Whether to deploy on testnet.
placeholder: "true"
default: "{{ target_network == 'testnet' and not use_generic_env }}"
when: 'false'

is_mainnet:
type: bool
help: Whether to deploy on mainnet.
placeholder: "true"
default: "{{ target_network == 'mainnet' and not use_generic_env }}"
when: 'false'

is_customnet:
type: bool
help: Whether to deploy on custom network.
placeholder: "true"
default: "{{ target_network == 'custom' and not use_generic_env }}"
when: 'false'

_templates_suffix: ".j2"
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,32 @@ custom_network_name:
placeholder: "custom"
when: "{{ not use_generic_env and target_network == 'custom' }}"

is_localnet:
type: bool
help: Whether to deploy on localnet.
placeholder: "true"
default: "{{ target_network == 'localnet' and not use_generic_env }}"
when: 'false'

is_testnet:
type: bool
help: Whether to deploy on testnet.
placeholder: "true"
default: "{{ target_network == 'testnet' and not use_generic_env }}"
when: 'false'

is_mainnet:
type: bool
help: Whether to deploy on mainnet.
placeholder: "true"
default: "{{ target_network == 'mainnet' and not use_generic_env }}"
when: 'false'

is_customnet:
type: bool
help: Whether to deploy on custom network.
placeholder: "true"
default: "{{ target_network == 'custom' and not use_generic_env }}"
when: 'false'

_templates_suffix: ".j2"
28 changes: 28 additions & 0 deletions template_content/.algokit/generators/create_env_file/copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,32 @@ custom_network_name:
placeholder: "custom"
when: "{{ not use_generic_env and target_network == 'custom' }}"

is_localnet:
type: bool
help: Whether to deploy on localnet.
placeholder: "true"
default: "{{ target_network == 'localnet' and not use_generic_env }}"
when: 'false'

is_testnet:
type: bool
help: Whether to deploy on testnet.
placeholder: "true"
default: "{{ target_network == 'testnet' and not use_generic_env }}"
when: 'false'

is_mainnet:
type: bool
help: Whether to deploy on mainnet.
placeholder: "true"
default: "{{ target_network == 'mainnet' and not use_generic_env }}"
when: 'false'

is_customnet:
type: bool
help: Whether to deploy on custom network.
placeholder: "true"
default: "{{ target_network == 'custom' and not use_generic_env }}"
when: 'false'

_templates_suffix: ".j2"

0 comments on commit 0fee943

Please sign in to comment.