-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (29 loc) · 854 Bytes
/
deploy.yml
File metadata and controls
33 lines (29 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: deploy
concurrency: testnet
on:
push:
branches:
- release
pull_request:
branches:
- release
workflow_dispatch:
jobs:
deploy-open-offchain:
name: deployment
runs-on: ubuntu-20.04
environment: testnet
steps:
- uses: actions/checkout@v2
- name: AWS SSM Send-Command
uses: peterkimzz/aws-ssm-send-command@1.0.1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
instance-ids: ${{ secrets.DEPLOY_INSTANCE_IDS }}
working-directory: /home/ubuntu/apps
command: /bin/sh ./deploy_open.sh > output.log
# Catch SSM outputs
- name: Get the outputs
run: echo "The Command id is ${{ steps.ssm.outputs.command-id }}"