Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: implement CD for boltz-mainnet #164

Open
wants to merge 4 commits into
base: boltz-mainnet
Choose a base branch
from
Open
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
38 changes: 38 additions & 0 deletions .github/workflows/deploy.boltz.mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: CD for Boltz Mainnet

on:
push:
tags:
- '**stable-boltzmainnet**'
branches:
- cd-boltz-mainnet

jobs:
deploy-boltz-mainnet:
runs-on: ubuntu-latest
environment:
name: Boltz-Mainnet
permissions:
id-token: write
contents: read

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: ${{ secrets.BOLTZ_MAINNET_ROLE_ARN }}
aws-region: ${{ secrets.BOLTZ_MAINNET_AWS_REGION }}

- name: Deploy rif-relay-server on Boltz Mainnet
run: |
aws ssm send-command \
--document-name "boltz-mainnet-deploy" \
--instance-ids "$INSTANCE_ID" \
--document-version '$LATEST'
echo "Deploy sent to EC2 instance"
env:
INSTANCE_ID: ${{ secrets.BOLTZ_MAINNET_INSTANCE_ID }}
Loading