Skip to content

Commit

Permalink
feat: onboard cicd for boltz testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
david-iov committed Feb 14, 2024
1 parent 4b9a043 commit d71e4c9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.boltz.testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: CD for Boltz Testnet

on:
push:
tags:
- '**beta-boltz-testnet**'

jobs:
deploy-testnet:
runs-on: ubuntu-latest
environment:
name: Boltz-Testnet

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.BOLTZ_TESTNET_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.BOLTZ_TESTNET_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.BOLTZ_TESTNET_AWS_REGION }}

- name: Deploy rif-relay-server on TESTNET
run: |
aws ssm send-command \
--document-name "AWS-RunRemoteScript" \
--instance-ids ""${{ secrets.BOLTZ_TESTNET_EC2_ID }}"" \
--region=${{ secrets.BOLTZ_TESTNET_AWS_REGION }} \
--parameters '{"sourceType":["GitHub"],"sourceInfo":["{\"owner\":\"rootstock\", \"repository\":\"ask-devops\", \"path\": \"rif-relay/\", \"tokenInfo\":\"{{ssm-secure:github-token}}\"}"],"commandLine":["deploy-testnet.sh"]}'

0 comments on commit d71e4c9

Please sign in to comment.