Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/platform-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,39 @@ jobs:
run: |
mkdir -p ~/.ansible/roles
cp -r ansible/roles/* ~/.ansible/roles/
# Update platform version in network config
- name: Update platform version in network config
run: |
# Update dashmate_version
sed -i "s/dashmate_version: .*/dashmate_version: ${{ github.event.inputs.platform_version }}/" networks/${{ github.event.inputs.network }}.yml

# Update platform service image versions
sed -i "s/drive_image: dashpay\/drive:[^ ]*/drive_image: dashpay\/drive:${{ github.event.inputs.platform_version }}/" networks/${{ github.event.inputs.network }}.yml
sed -i "s/dapi_image: dashpay\/dapi:[^ ]*/dapi_image: dashpay\/dapi:${{ github.event.inputs.platform_version }}/" networks/${{ github.event.inputs.network }}.yml

echo "Updated network config:"
grep -E "(dashmate_version|drive_image|dapi_image)" networks/${{ github.event.inputs.network }}.yml

# Commit and push updated config back to repository
- name: Commit and push updated network config
run: |
cd networks
git config user.name "GitHub Actions"
git config user.email "actions@github.com"

# Check if there are changes to commit
if git diff --quiet; then
echo "No changes to commit"
else
git add ${{ github.event.inputs.network }}.yml
git commit -m "Update ${{ github.event.inputs.network }} platform version to ${{ github.event.inputs.platform_version }}

🤖 Generated with [GitHub Actions](https://github.com/dashpay/dash-network-deploy/actions)

Co-Authored-By: GitHub Actions <actions@github.com>"Add commentMore actions
git push origin main
echo "Successfully pushed updated config to repository"
fi

# Run platform deployment
- name: Run Platform Deployment
Expand Down
Loading