Skip to content

Commit c8bf644

Browse files
authored
Merge pull request #18 from OpsGuild/dev
refactor(config): Streamline environment variable retrieval
2 parents ab3c2b3 + f73d499 commit c8bf644

7 files changed

Lines changed: 623 additions & 605 deletions

File tree

action.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,36 @@ runs:
169169
run: |
170170
cd ${{ github.action_path }}
171171
poetry run python main.py
172+
env:
173+
GIT_URL: ${{ inputs.git_url }}
174+
GIT_AUTH_METHOD: ${{ inputs.git_auth_method }}
175+
GIT_TOKEN: ${{ inputs.git_token }}
176+
GIT_USER: ${{ inputs.git_user }}
177+
GITHUB_REPOSITORY: ${{ github.repository }}
178+
GITHUB_ACTOR: ${{ github.actor }}
179+
GIT_SSH_KEY: ${{ inputs.git_ssh_key }}
180+
DEPLOYMENT_TYPE: ${{ inputs.deployment_type }}
181+
ENVIRONMENT: ${{ inputs.environment }}
182+
REMOTE_USER: ${{ inputs.remote_user }}
183+
REMOTE_HOST: ${{ inputs.remote_host }}
184+
REMOTE_DIR: ${{ inputs.remote_dir }}
185+
SSH_KEY: ${{ inputs.ssh_key }}
186+
REMOTE_PASSWORD: ${{ inputs.remote_password }}
187+
REGISTRY_TYPE: ${{ inputs.registry_type }}
188+
REGISTRY_USERNAME: ${{ inputs.registry_username }}
189+
REGISTRY_PASSWORD: ${{ inputs.registry_password }}
190+
AWS_REGION: ${{ inputs.aws_region }}
191+
AWS_ACCOUNT_ID: ${{ inputs.aws_account_id }}
192+
PROFILE: ${{ inputs.profile }}
193+
DEPLOY_COMMAND: ${{ inputs.deploy_command }}
194+
K8S_MANIFEST_PATH: ${{ inputs.k8s_manifest_path }}
195+
K8S_NAMESPACE: ${{ inputs.k8s_namespace }}
196+
USE_SUDO: ${{ inputs.use_sudo }}
197+
ENV_FILES_GENERATE: ${{ inputs.env_files_generate }}
198+
ENV_FILES_STRUCTURE: ${{ inputs.env_files_structure }}
199+
ENV_FILES_PATH: ${{ inputs.env_files_path }}
200+
ENV_FILES_PATTERNS: ${{ inputs.env_files_patterns }}
201+
ENV_FILES_CREATE_ROOT: ${{ inputs.env_files_create_root }}
202+
ENV_FILES_FORMAT: ${{ inputs.env_files_format }}
203+
COPY_ARTIFACTS: ${{ inputs.copy_artifacts }}
204+
GITHUB_WORKSPACE: ${{ github.workspace }}

changelogs/2026-01-29_20-26-44.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
## [Unreleased]
44

55
### Changed
6-
- Improved the execution of `sudo` commands for remote connections. Commands are now wrapped in `bash -c` to ensure `sudo` correctly applies to the entire command, including pipelines and chained commands, preventing partial execution failures.
6+
- Improved the execution of `sudo` commands for remote connections. Commands are now wrapped in `bash -c` to ensure `sudo` correctly applies to the entire command, including pipelines and chained commands, preventing partial execution failures.

0 commit comments

Comments
 (0)