-
Notifications
You must be signed in to change notification settings - Fork 4
81 lines (74 loc) · 2.06 KB
/
nuke-all.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Nuke all deployments (releases all deposited AKT)
#description: Close all active deployments for this account
on:
workflow_call:
inputs:
PROJECT_PATH:
description: 'Path for the project to deploy'
required: false
default: '.'
type: string
project_name:
description: 'Project name (will be used as prefix for cache keys)'
required: false
default: 'app'
type: string
secrets:
SEED:
description: 'Seed phrase for the wallet'
required: true
PASSWORD:
description: 'Password to decrypt the wallet'
required: true
ghcr-token:
description: 'GITHUB_TOKEN'
required: true
env:
ORG: akash-network
REPO: provider
CLIENT: provider-services
CLIENT_VERSION: 0.4.6
ARCH: linux_amd64
# Akash Network
NET: mainnet
#BLOCK_TIME: 6s
BLOCK_TIME: 1s
# Quit if chain is running 30 seconds behind
CHAIN_LATENCY: 30
# Akash Client parameters
AKASH_KEYRING_BACKEND: file
AKASH_BROADCAST_MODE: block
#AKASH_BROADCAST_MODE: async
AKASH_YES: 1
AKASH_GAS_PRICES: 0.025uakt
AKASH_GAS: auto
AKASH_GAS_ADJUSTMENT: 1.5
AKASH_HOME: /home/runner/.akash
AKASH_FROM: default
AKASH_OUTPUT: json
# Minimum balance on the wallet in AKT
MIN_BALANCE: 10
AKASH_GSEQ: 1
AKASH_OSEQ: 1
SDL: deploy.yaml
#PROVIDER: akash18ga02jzaq8cw52anyhzkwta5wygufgu6zsz6xc
jobs:
nuke-all:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Call Initialize Akash client
uses: TedcryptoOrg/akash-deploy-action/.github/actions/init-akash@main
with:
seed: ${{ secrets.SEED }}
password: ${{ secrets.PASSWORD }}
project_name: ${{ inputs.project_name }}
- name: Call Close all active
uses: TedcryptoOrg/akash-deploy-action/.github/actions/close-all-active@main
with:
password: ${{ secrets.PASSWORD }}
github_token: ${{ secrets.ghcr-token }}
PROJECT_PATH: ${{ inputs.PROJECT_PATH }}