SIENTIAPDE-1352: Add deploy workflow and update README with local repository execution instructions.
This commit is contained in:
30
README.md
30
README.md
@@ -1232,8 +1232,8 @@ Create a `.secrets` file in the project root to store tokens and credentials:
|
||||
GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxx
|
||||
SONAR_TOKEN=sqp_xxxxxxxxxxxxxxxxxxxx
|
||||
SONAR_HOST_URL=https://sonarqube.example.com
|
||||
APP_ID=123456
|
||||
APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
|
||||
CI_DEPS_APP_ID=123456
|
||||
CI_DEPS_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
|
||||
```
|
||||
|
||||
> ⚠️ **Important**: The `.secrets` file is already in `.gitignore`. Never commit this file!
|
||||
@@ -1274,6 +1274,32 @@ act pull_request -j quality-gate \
|
||||
--eventpath .event.json
|
||||
```
|
||||
|
||||
#### Run Deploy Workflow with Local Repository
|
||||
|
||||
If you have workflows that reference external repositories (e.g., reusable workflows), you can map them locally:
|
||||
|
||||
```bash
|
||||
act pull_request \
|
||||
-e .event.json \
|
||||
--secret-file .secrets \
|
||||
-W .github/workflows/deploy.yml \
|
||||
--local-repository Aignosi/github_workflow_templates=/path/to/local/github_workflow_templates \
|
||||
--container-daemon-socket /var/run/docker.sock \
|
||||
--container-options "--user $(id -u):$(id -g)"
|
||||
```
|
||||
|
||||
#### Docker Socket Permissions
|
||||
|
||||
If you encounter permission issues with Docker socket:
|
||||
|
||||
```bash
|
||||
# Grant temporary access to Docker socket
|
||||
sudo chmod 666 /var/run/docker.sock
|
||||
|
||||
# Fix file ownership after running act (if needed)
|
||||
sudo chown -R $USER:$USER /path/to/project
|
||||
```
|
||||
|
||||
### Command Reference
|
||||
|
||||
#### Command Parameters
|
||||
|
||||
Reference in New Issue
Block a user