Skip to content

Commit

Permalink
Adds testnet be deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaiovlabs committed Jul 30, 2024
1 parent a634019 commit e9f8b75
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CD for flyover-api Testnet

on:
push:
branches:
- QA-Test

jobs:
execute-command:
runs-on: ubuntu-latest
environment: testnet
permissions:
id-token: write
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Execute deployment command on EC2 instance
run: |
aws ssm send-command \
--document-name "deployBETestnetDocument" \
--instance-ids "$INSTANCE_ID" \
--document-version '$LATEST'
echo "Deploy sent to EC2 instance"
env:
INSTANCE_ID: ${{ secrets.TESTNET_INSTANCE_ID }}

0 comments on commit e9f8b75

Please sign in to comment.