-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
37 lines (37 loc) · 1.28 KB
/
action.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
29
30
31
32
33
34
35
36
37
# action.yml
name: "Akash on Github Actions Update Deploy"
description: "Update a deployment on Akash with a deploy.yml"
inputs:
AKASH_DSEQ: # id of input
description: "deployment sequence id"
required: true
AKASH_PROVIDER: # id of input
description: "provider address to send update to"
required: true
SDL_PATH: # id of input
description: "sdl file to target for deployment"
required: false
default: "deploy.yaml"
AKASH_NODE: # id of input
description: "rpc node to use for commands"
required: false
default: "http://135.181.181.121:28957"
runs:
using: "composite"
steps:
- name: import key
shell: bash
env:
AKASH_HOME: /home/runner/.akash
run: |-
unset AKASH_GAS
akash tx deployment update ${{inputs.SDL_PATH}} --dseq ${{inputs.AKASH_DSEQ}} --from AKASH_GITHUB_RUNNER --keyring-backend test --node ${{inputs.AKASH_NODE}} -y
- name: Sleep before sending update
shell: bash
run: sleep 15s
- name: send update deployment
shell: bash
env:
AKASH_HOME: /home/runner/.akash
run: |-
provider-services send-manifest ${{inputs.SDL_PATH}} --node ${{inputs.AKASH_NODE}} --from AKASH_GITHUB_RUNNER --provider ${{inputs.AKASH_PROVIDER}} --dseq ${{inputs.AKASH_DSEQ}}