Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refining-env-file-generator #32

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 algokit
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"