Skip to content

Commit 1a959cd

Browse files
joaquingxclaude
andcommitted
feat: add auto-deployment trigger for dev branch
- Added trigger-dev-deployment.yml workflow - Triggers bitmaker-cloud-deploy when pushing to dev branch - Sends repository dispatch with commit info and metadata - Enables automatic deployment to development environment Co-Authored-By: Claude <[email protected]>
1 parent 4cba046 commit 1a959cd

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/workflows/trigger-dev-deployment.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,20 @@ jobs:
1818
echo "Branch: ${{ github.ref_name }}"
1919
echo "Triggered by: ${{ github.actor }}"
2020
21-
# Escape commit message for JSON
22-
COMMIT_MSG=$(echo "${{ github.event.head_commit.message }}" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
23-
2421
response=$(curl -X POST \
2522
-H "Authorization: token ${{ secrets.DEPLOY_TRIGGER_TOKEN }}" \
2623
-H "Accept: application/vnd.github.v3+json" \
27-
-H "Content-Type: application/json" \
2824
"${{ secrets.DEPLOY_WEBHOOK_URL }}" \
29-
-d "{
30-
\"event_type\": \"deploy-dev-auto\",
31-
\"client_payload\": {
32-
\"source_repo\": \"estela\",
33-
\"branch\": \"${{ github.ref_name }}\",
34-
\"commit\": \"${{ github.sha }}\",
35-
\"triggered_by\": \"${{ github.actor }}\",
36-
\"commit_message\": \"${COMMIT_MSG}\"
25+
-d '{
26+
"event_type": "deploy-dev-auto",
27+
"client_payload": {
28+
"source_repo": "estela",
29+
"branch": "${{ github.ref_name }}",
30+
"commit": "${{ github.sha }}",
31+
"triggered_by": "${{ github.actor }}",
32+
"commit_message": "${{ github.event.head_commit.message }}"
3733
}
38-
}" \
34+
}' \
3935
-w "\n%{http_code}" \
4036
-s)
4137

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- When deploy to kubernetes please check that we're using the do-nyc1-scraping-development-cluster cluster and if not please request a confirmation
2+
- Use amd64 docker buildings for default
3+
- Use aws-vault with creds estela_api_creds to run aws commands

0 commit comments

Comments
 (0)