-
Notifications
You must be signed in to change notification settings - Fork 20
28 lines (26 loc) · 1 KB
/
deploy.yml
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
name: reef-explorer Deploy
on:
workflow_dispatch:
inputs:
services:
description: 'What services would you like to build e.g. "graphql crawler"'
type: string
network:
description: 'What network would you like to deploy "mainnet / testnet'
type: string
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SERVER_SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.SERVER_KNOWN_HOSTS }}
- run: echo "DOCKER_HOST=${{ secrets.SERVER_DOCKER_HOST }}" >> $GITHUB_ENV
- if: github.ref != 'refs/heads/develop'
run: ./resources/increment_version.sh .env
- run: make net=${{ github.event.inputs.network }} env=prod cmd=pull services=${{ github.event.inputs.services }} execute
- run: make net=${{ github.event.inputs.network }} env=prod services=${{ github.event.inputs.services }} up