-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.12 KB
/
deploy.yaml
File metadata and controls
43 lines (36 loc) · 1.12 KB
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
34
35
36
37
38
39
40
41
42
43
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Get timestamp
uses: gerred/actions/current-time@master
id: current-time
- name: Run string replace
uses: frabert/replace-string-action@master
id: format-time
with:
pattern: '[:\.]+'
string: "${{ steps.current-time.outputs.time }}"
replace-with: '-'
flags: 'g'
- name: Generate deployment package for ELB
run: zip -r deploy.zip . -x '*.git*'
- name: Deploy to ELB
uses: einaregilsson/beanstalk-deploy@v18
with:
aws_access_key: "${{secrets.AWS_ACCESS_KEY}}"
aws_secret_key: "${{secrets.AWS_SECRET_KEY}}"
application_name: "the-graph"
environment_name: "ipfs-node"
region: "ap-south-1"
version_label: "${{ github.event.repository.name }}-${{ steps.format-time.outputs.replaced }}"
region_specific_s3: "true"
use_existing_version_if_available: "true"
deployment_package: "deploy.zip"