Update GitLab CI Configuration to Decode Commitizen Deploy Key
The GitLab CI configuration needs to be updated to properly handle the Commitizen deploy key (CZ_DEPLOY_KEY) which has been base64 encoded for masking purposes.
Current Configuration
echo "${CZ_DEPLOY_KEY}" | tr -d '\r' | ssh-add - > /dev/null
Required Change
echo "${CZ_DEPLOY_KEY}" | base64 -d | tr -d '\r' > ~/.ssh/id_rsa
Technical Details
- The CZ_DEPLOY_KEY is currently stored in base64 format
- The new configuration will decode the key before storing it in the SSH directory
- This change is necessary to maintain proper key masking in the CI logs
Implementation Notes
- Update the CI configuration file
- Ensure proper permissions are set on the decoded SSH key
- Verify the deployment process works correctly after the change