Guide to Code Update and Deployment in the Processing and Intelligence Module via GitHub Actions
This workflow ensures that updated code is properly tested, deployed, and communicated to the team, maintaining traceability and organization throughout the process. This is a typical procedure for teams using continuous integration (CI/CD) and deployment automation, with a strong focus on transparency and validation.
Prerequisites for Updating
Before starting the update, make sure the following items are configured:
✅ Git integration completed see the Git integration document.
✅ Access to the repository and permissions to make commits and run workflows.
✅ Local development environment configured, including:
- Git installed.
- Project dependencies installed (requirements.txt or environment.yml).
- Access to the Transformation and Intelligence Module properly configured.
Update Steps
Code Update
- Create a new branch to modify the code:
git checkout -b minha-nova-feature- Make the necessary changes to the code.
- Test the changes to make sure everything is working correctly.
- Document all changes made.
Sending Changes to GitHub
- Add and commit the changes in Git:
git add .
git commit -m "Descrição das alterações realizadas"- Push the changes to the remote repository:
git push origin minha-nova-feature- Create a
Pull Request (PR)on GitHub and request a review (at least 1 reviewer) - After review and approval, merge into the
mainbranch.
Running the Workflow in GitHub Actions
After merging into the main branch, you'll need to run the deploy workflow.
- Access the repository on GitHub.
- Go to the
"Actions" tab. - Select the
"Deploy Intel Project"workflow. - Click
"Run workflow" and fill in the following fields:- environment: Select the environment (
stg,prd). - cluster_type: Select the cluster type (
cluster-intelli,cluster-process). - customer_name: Derive the customer name from the
Intelligence moduleURL. - repository_name: Enter the repository name.
- environment: Select the environment (
- Click
"Run workflow"to start the process.
Post-Deploy Verification
After the workflow runs, it's essential to verify that the updates were correctly reflected in the intelligence module.
- Access the transformation or intelligence module.
- Confirm that the changes were applied correctly.
- Run tests to make sure everything is working as expected.
- Document the test results and any issues found.
Documenting the Changes
After updating and validating, it's essential to record the changes to ensure traceability.
📌 Follow the steps below:
- Document the changes in the GitHub repository.
- Update the card in Jira with the following details:
- Description of what was updated.
- Confirmation that the workflow was run.
- Post-update test results.
Communicating with the Team
📢 Keeping the team informed about changes is essential for alignment.
- Send a notification to the team.
- Include details about:
- What was changed.
- Test results.
- Actions required from the team, if any.
Conclusion
By following this guide, we ensure that updates are made in a controlled, secure, and efficient way. The deployment process in the Intelligence Module via GitHub Actions helps maintain traceability and minimize production errors.
Updated about 21 hours ago
