Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #3

Open
wants to merge 300 commits into
base: main-akash
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
300 commits
Select commit Hold shift + click to select a range
6104d66
update authenticate.ts
dharamveergit Sep 7, 2024
65c1d49
fix : Deploy
dharamveergit Sep 7, 2024
1469353
fix: remove "Environment Variables" in expanded state (Remote Deploy)
dharamveergit Sep 9, 2024
4610359
Feature to improve stats app charts (#347)
forbesus Sep 9, 2024
2190000
refactor(auth): remove email endpoint from console web
ygrishajev Sep 6, 2024
abdb18a
feat(console): balance authz deployments (#359)
baktun14 Sep 10, 2024
1e892ee
fix(env): convert all env vars to SCREAMING_CASE from camelCase (#335)
hiroyukikumazawa Sep 11, 2024
25bd3fc
chore: bump versions
Redm4x Sep 12, 2024
5fb6826
fix(indexer): fix env var uppercase
Redm4x Sep 12, 2024
d71d815
chore(indexer): bump version
Redm4x Sep 12, 2024
b9ed85b
Merge remote-tracking branch 'upstream/main'
dharamveergit Sep 12, 2024
29c8d5a
fix: Reordering of variables and useEffects
dharamveergit Sep 12, 2024
2da9923
fix: code clean (Remote Deploy)
dharamveergit Sep 12, 2024
a693d7a
fix: type fixes (Remote Deploy)
dharamveergit Sep 12, 2024
6f38fa9
fix: types (Remote Deploy)
dharamveergit Sep 12, 2024
299fe33
update Repos.tsx, bitbucket-api.ts and gitlab-api.ts
dharamveergit Sep 12, 2024
c026375
fix: vercel deploy fix
dharamveergit Sep 12, 2024
5647200
revert: vercel deploy
dharamveergit Sep 12, 2024
793a3ac
refactor(network): retrieves api versions and urls based on network s…
ygrishajev Sep 12, 2024
d1303d0
feat(deployment): ensure usd values in deployments for managed wallets
ygrishajev Sep 10, 2024
baa36d3
feat(deployment): implement deployment deposit top up via managed wallet
ygrishajev Sep 10, 2024
5821792
fix: types and api class logic (Remote Deployment)
dharamveergit Sep 13, 2024
1a2ab6b
fix: vercel deploy
dharamveergit Sep 13, 2024
999660c
Merge remote-tracking branch 'upstream/main'
dharamveergit Sep 13, 2024
dfb4367
fix: fetch deploy.yml from awesome akash
dharamveergit Sep 16, 2024
ab68c65
Migrate elements to usage via CDN (#317)
siddharthborderwala Sep 16, 2024
d1fb395
feat: add nginx proxying with ssl to api & provider-proxy (#368)
Redm4x Sep 16, 2024
6c78b9b
chore: bump versions
Redm4x Sep 17, 2024
d01b8d5
feat(console): added application key to filter out third party except…
baktun14 Sep 18, 2024
a7d4873
fix(wallet): ensure managed wallet is gone after logout
ygrishajev Sep 18, 2024
94bc07e
refactor(console): add env vars for sentry (#374)
baktun14 Sep 18, 2024
341e1a6
fix(provider-proxy): add wss support to nginx config
Redm4x Sep 18, 2024
e1da868
chore(provider-proxy): bump version
Redm4x Sep 18, 2024
b3dea6e
fix(api): update staging stripe checkout redirect url
baktun14 Sep 19, 2024
9f5bd71
fix(wallet): ensure managed wallet selected on create
ygrishajev Sep 19, 2024
0224f79
fix(env): parse process env with zod to ensure default values
ygrishajev Sep 19, 2024
e88ed70
fix(wallet): refetch using query directly to avoid circular dep
ygrishajev Sep 19, 2024
a0013d8
fix(build): build deploy-web with env in CDCI
ygrishajev Sep 19, 2024
cab6d16
fix(api): default expiration 10y if not set for deployment deposit (#…
baktun14 Sep 19, 2024
83a2a06
Merge remote-tracking branch 'upstream/main'
dharamveergit Sep 20, 2024
3052eca
Merge remote-tracking branch 'upstream/main'
dharamveergit Sep 20, 2024
368b22a
build(deps): update browser-env.config.ts, env-config.schema.ts and p…
dharamveergit Sep 20, 2024
a2a6f0e
delete: dup env component
dharamveergit Sep 20, 2024
c6cb364
delete: static github template from templates.ts
dharamveergit Sep 20, 2024
25206aa
fix: vercel deployment
dharamveergit Sep 20, 2024
1c3a12e
feat(dx): configure commitlint git hooks
ygrishajev Sep 20, 2024
27e1289
feat(deployment): ensure user can re-send manifest
ygrishajev Sep 20, 2024
ffc764b
feat(logging): implement fluentd reporter
ygrishajev Sep 18, 2024
cbdf040
chore: rename api + provider proxy + backup + db from cloudmos to con…
baktun14 Sep 23, 2024
c3536b0
chore: add contribution guideline (#379)
baktun14 Sep 23, 2024
9905c9b
chore: bump version
Redm4x Sep 23, 2024
4a43483
fix(deployment): managed walllet fixes (#382)
baktun14 Sep 24, 2024
8dfc23e
Improve error handling in api (#383)
Redm4x Sep 24, 2024
a068b15
fix(certificate): certificates pagination bug (#384)
baktun14 Sep 24, 2024
c08b662
chore: bump versions
Redm4x Sep 25, 2024
a56c164
Merge remote-tracking branch 'upstream/main'
dharamveergit Sep 25, 2024
33b30ba
chore(dx): improve contribution guideline (#386)
baktun14 Sep 26, 2024
b39b057
feat(billing): rename POST /v1/wallets to POST /v1/start-trial
ygrishajev Sep 26, 2024
c241ed8
Merge remote-tracking branch 'upstream/main'
dharamveergit Sep 28, 2024
87e5de0
code clean
dharamveergit Sep 28, 2024
732a365
fix: remote deploy name change
dharamveergit Sep 28, 2024
51fdcaf
deployment: vercel
dharamveergit Sep 28, 2024
c117b69
fix: dseq
dharamveergit Sep 28, 2024
57f02e4
fix: template id
dharamveergit Sep 28, 2024
47952e9
fix: error code
dharamveergit Sep 28, 2024
f3f7df4
feat(env): unify app configs for api and indexer, update doc
ygrishajev Sep 16, 2024
608a16d
feat(network): extract network store into a package
ygrishajev Sep 17, 2024
3b1a78f
Merge remote-tracking branch 'upstream/main'
dharamveergit Oct 3, 2024
766f8db
fix: code clean (remote Deploy)
dharamveergit Oct 3, 2024
f3881c0
fix: queries
dharamveergit Oct 3, 2024
ce4bfb1
fix: build errors
dharamveergit Oct 3, 2024
61ba6e5
fix: bitbucket auth error
dharamveergit Oct 3, 2024
993f936
fix: (Remote Deploy) - Query keys , Remote Deploy Services
dharamveergit Oct 4, 2024
a02e258
fix: (remote-deploy) Camel case
dharamveergit Oct 4, 2024
8d0f432
fix: types (Remote Deploy) Github
dharamveergit Oct 4, 2024
88e993e
fix: remote types
dharamveergit Oct 4, 2024
04f1f7c
fix: vercel deploy
dharamveergit Oct 4, 2024
e3d41ef
fix: revert vercel deploy
dharamveergit Oct 4, 2024
654dbae
fix(deployment): only set the template and redirect once when loading…
baktun14 Oct 4, 2024
f2effa8
test(deployment): e2e testing create deployment (#392)
baktun14 Oct 4, 2024
34dbbf1
feat(stats): improve stats app resiliency
forbesus Sep 24, 2024
5dc5ee5
Merge remote-tracking branch 'upstream/main'
dharamveergit Oct 5, 2024
8d5c138
fix: dot env build error (deploy-web)
dharamveergit Oct 5, 2024
d1cbd3e
fix: gitlab service
dharamveergit Oct 5, 2024
91d3434
fix: boolean isRemoteDeploy
dharamveergit Oct 6, 2024
c77b9d1
fix: openapi type to dev
dharamveergit Oct 6, 2024
bc68df8
feat(console): add metamask (#334)
baktun14 Oct 7, 2024
349e1e0
fix: gitlab refresh token
dharamveergit Oct 8, 2024
149c1b5
feat(config): replace network ids constants with imports from network…
ygrishajev Oct 3, 2024
0663a12
feat(config): extract date constants to a dedicated config
ygrishajev Oct 3, 2024
c3e761e
feat(config): extract denom constants to a dedicated config
ygrishajev Oct 3, 2024
3d804d5
feat(config): replace network management with network store package
ygrishajev Oct 3, 2024
6cf640d
feat(config): replace api url definitions with env var configs
ygrishajev Oct 3, 2024
2b61992
ci(config): adjust ci build for stats-web
ygrishajev Oct 3, 2024
3f96263
fix: update package-lock.json
ygrishajev Oct 8, 2024
dacf32a
chore: update console FAQ + add amd64 cpu support (#399)
baktun14 Oct 8, 2024
ed22ad7
feat(config): setup doppler env for api
ygrishajev Oct 3, 2024
470e34c
Merge remote-tracking branch 'upstream/main'
dharamveergit Oct 10, 2024
2e9f0f2
fix: useMemo in envVArUpdater
dharamveergit Oct 10, 2024
e1003ef
fix: class in remote deploy
dharamveergit Oct 10, 2024
9f5d7a8
chore: update readme (#400)
baktun14 Oct 10, 2024
c0d50b1
fix(deployment): templates new deploy (#403)
baktun14 Oct 14, 2024
a9fa7e8
feat(release): implement release with image build
ygrishajev Oct 7, 2024
c10dae8
chore(release): released version console-api/v2.24.0-beta.0
Oct 14, 2024
db080b6
chore(release): released version console-web/v2.17.0-beta.0
Oct 14, 2024
9d89ecc
chore(release): released version console-api/v2.24.0
Oct 14, 2024
74aef9a
chore(release): released version console-web/v2.17.0
Oct 14, 2024
7e83203
ci(release): update ci git config with a specific user
ygrishajev Oct 15, 2024
79c356a
chore(release): update the way mvm files update is called
ygrishajev Oct 15, 2024
498df40
chore(repo): add code owners file
ygrishajev Oct 15, 2024
866a4cc
ci(release): implement api deploy to akash
ygrishajev Oct 14, 2024
295e085
feat(wallet): improve fiat payments ux
baktun14 Oct 17, 2024
e86bb1e
chore(release): released version console-api/v2.25.0-beta.0
Oct 17, 2024
fcd4891
chore(release): released version console-web/v2.19.0-beta.0
Oct 17, 2024
611ba12
ci(release): implement web deploy to gcp
ygrishajev Oct 17, 2024
90e0235
feat(billing): update master wallet and enable billing for prod
ygrishajev Oct 17, 2024
c38e5b9
chore(release): released version console-api/v2.25.0-beta.1
Oct 17, 2024
384cb46
chore(release): released version console-web/v2.19.0-beta.1
Oct 17, 2024
2aafac6
ci: update api port in akash sdl
ygrishajev Oct 17, 2024
f13f50a
chore(release): released version console-api/v2.25.0
Oct 17, 2024
51b5af0
chore(release): released version console-web/v2.19.0
Oct 17, 2024
6193df5
fix(wallet): authz pagination
baktun14 Oct 18, 2024
2f30701
chore(release): released version console-web/v2.19.1-beta.0
Oct 18, 2024
771f28c
fix(config): merge
dharamveergit Oct 21, 2024
ab3d1ca
fix(repo): cn
dharamveergit Oct 21, 2024
6849309
feat(deployment): add trial providers
baktun14 Oct 23, 2024
ae03311
fix(deployment): added provider validation for trial
baktun14 Oct 22, 2024
3d95615
feat(deployment): add new endpoint to query filtered bids for trial a…
baktun14 Oct 22, 2024
b052151
fix(styling): remove beta logo
baktun14 Oct 23, 2024
b18a57a
feat(deployment): refactor trial providers to config file
baktun14 Oct 23, 2024
1dedde4
fix(wallet): fix your account usdc display
baktun14 Oct 23, 2024
47c62e2
chore(release): released version console-api/v2.26.0-beta.0
Oct 23, 2024
c205570
chore(release): released version console-web/v2.20.0-beta.0
Oct 23, 2024
d7efa2a
chore(release): released version console-web/v2.20.0
Oct 23, 2024
de4fd2d
chore(release): released version console-api/v2.26.0
Oct 23, 2024
5ef9048
chore: update trial-providers.json
Zblocker64 Oct 25, 2024
030e73f
Merge remote-tracking branch 'upstream/main'
dharamveergit Oct 26, 2024
938f6b7
fix(styling): fix typo on homepage (#420)
Redm4x Oct 26, 2024
6027bdc
chore(release): released version console-web/v2.20.1-beta.0
Oct 26, 2024
4ff36c8
chore(release): released version console-web/v2.20.1
Oct 26, 2024
f7a6701
Trial whitelist update (#422)
chainzero Oct 28, 2024
470bc83
fix: update trial-providers.json
baktun14 Oct 29, 2024
7b33801
chore: trial whitelist update
devalpatel67 Oct 29, 2024
ffdfa1a
Merge remote-tracking branch 'upstream/main'
dharamveergit Oct 29, 2024
a4cd312
feat(deployment): implements basic top up handler w/o implementation
ygrishajev Oct 28, 2024
4624d9d
chore(release): released version console-api/v2.27.0-beta.0
Oct 29, 2024
39ee991
fix(wallet): ensure proper network and manage wallet switch
ygrishajev Oct 29, 2024
a1cf0fc
chore(release): released version console-web/v2.20.2-beta.0
Oct 29, 2024
d9de0eb
fix: improve perf
Redm4x Oct 30, 2024
18c6827
chore(release): released version console-api/v2.27.0-beta.1
Oct 30, 2024
a68dc4c
chore(release): released version console-web/v2.20.2-beta.1
Oct 30, 2024
a04addb
chore(release): released version console-web/v2.20.2
Oct 30, 2024
8d27ff7
chore(release): released version console-api/v2.27.0
Oct 30, 2024
f29a37d
chore(release): update provider proxy version
baktun14 Oct 30, 2024
5ea00e4
feat(wallet): implement multiple master wallets and clients
ygrishajev Oct 29, 2024
2f7bec4
chore(wallet): add top up master wallets to env files
ygrishajev Oct 30, 2024
77644e7
chore(release): released version console-api/v2.28.0-beta.0
Oct 30, 2024
9df7181
Merge remote-tracking branch 'upstream/main'
dharamveergit Oct 30, 2024
e3d1bc7
create 23 files and update 8 files
dharamveergit Aug 16, 2024
b1ce7b7
feat: Update Remote Deploy
dharamveergit Aug 16, 2024
2d1adaa
update 4 files and create 2 files
dharamveergit Aug 16, 2024
c56cc9a
feat: new Repo selection
dharamveergit Aug 16, 2024
aad51b1
feat: Bitbucket Repo Selection
dharamveergit Aug 16, 2024
e37237d
feat: Gitlab Repo Selection
dharamveergit Aug 16, 2024
31c79a8
fix: Gitlab repos ui fix
dharamveergit Aug 16, 2024
584806a
feat: update disable _pull
dharamveergit Aug 16, 2024
f6c81a5
fix : update ui
dharamveergit Aug 17, 2024
2c3c31b
feat: New Frameworks
dharamveergit Aug 17, 2024
b950ca7
feat: vite Framework
dharamveergit Aug 17, 2024
100a11a
fix: open fix repos
dharamveergit Aug 17, 2024
ce773ca
update Repos.tsx, RemoteDeployUpdate.tsx and utils.ts
dharamveergit Aug 19, 2024
28883ca
fix : more git repo fetch
dharamveergit Aug 20, 2024
645ed4f
test: temp fix
dharamveergit Aug 21, 2024
a4d7de6
fix: relogin
dharamveergit Aug 22, 2024
cfa9507
feat: remote-deploy: bug fixes
dharamveergit Aug 22, 2024
55cc0f5
fix: redeploy advanced
dharamveergit Aug 22, 2024
d3409bb
update GihubDeploy.tsx
dharamveergit Aug 23, 2024
caaf69d
update 5 files
dharamveergit Aug 23, 2024
3c03af1
update RemoteDeployUpdate.tsx and templates.ts
dharamveergit Aug 24, 2024
7cc1ae2
update : descriptions
dharamveergit Aug 26, 2024
604604e
fixes: type
dharamveergit Aug 28, 2024
05cbdac
fix:repo filtering
dharamveergit Aug 28, 2024
7e471e1
remove: console.logs
dharamveergit Aug 28, 2024
7eeb53e
fix: repo redeploy selection
dharamveergit Aug 28, 2024
4b0cdaa
feat: images for git accounts
dharamveergit Aug 28, 2024
e4369f9
fix: filtering of repo (In Github)
dharamveergit Aug 29, 2024
848306a
fix: ui (remote deploy)
dharamveergit Aug 30, 2024
a8b589c
ui fix : rollback
dharamveergit Aug 30, 2024
1cdd30e
update Rollback.tsx
dharamveergit Aug 30, 2024
ffcc134
fix : names( Remote Deploy)
dharamveergit Aug 31, 2024
1bda1a6
update LeaseRow.tsx
dharamveergit Aug 31, 2024
0ed709d
fix: ui issues (Remote Deploy)
dharamveergit Aug 31, 2024
0437231
remove : service name edit form remote deploy
dharamveergit Aug 31, 2024
0a412a2
update Advanced.tsx and EnvFormModal.tsx
dharamveergit Sep 3, 2024
2be3371
api: github api (next)
dharamveergit Sep 5, 2024
afeeec6
next api: remote deploy - gitlab,bitbucket
dharamveergit Sep 6, 2024
55f019d
ui fixes : Env and account ui (Remote Deploy)
dharamveergit Sep 7, 2024
03767db
fix : env in update deployment
dharamveergit Sep 7, 2024
efcb008
fix: Account select in smaller screens (Remote Deploy)
dharamveergit Sep 7, 2024
fd4bf9a
remove: console logs (Remote Deploy)
dharamveergit Sep 7, 2024
13cfc1a
update api.ts
dharamveergit Sep 7, 2024
fc60f05
fix: auth github
dharamveergit Sep 7, 2024
dc88c38
update authenticate.ts
dharamveergit Sep 7, 2024
82d9598
fix : Deploy
dharamveergit Sep 7, 2024
bc687d8
fix: remove "Environment Variables" in expanded state (Remote Deploy)
dharamveergit Sep 9, 2024
d35a31a
fix: Reordering of variables and useEffects
dharamveergit Sep 12, 2024
0ca6522
fix: code clean (Remote Deploy)
dharamveergit Sep 12, 2024
d3a1717
fix: type fixes (Remote Deploy)
dharamveergit Sep 12, 2024
949088a
fix: types (Remote Deploy)
dharamveergit Sep 12, 2024
7adb6a1
update Repos.tsx, bitbucket-api.ts and gitlab-api.ts
dharamveergit Sep 12, 2024
c1c0ef1
fix: vercel deploy fix
dharamveergit Sep 12, 2024
8651b7a
revert: vercel deploy
dharamveergit Sep 12, 2024
77603bd
fix: types and api class logic (Remote Deployment)
dharamveergit Sep 13, 2024
bf3b1f7
fix: vercel deploy
dharamveergit Sep 13, 2024
fca1f4f
fix: fetch deploy.yml from awesome akash
dharamveergit Sep 16, 2024
83c4ce0
build(deps): update browser-env.config.ts, env-config.schema.ts and p…
dharamveergit Sep 20, 2024
f092279
delete: dup env component
dharamveergit Sep 20, 2024
49edcb5
delete: static github template from templates.ts
dharamveergit Sep 20, 2024
e46bbaf
fix: vercel deployment
dharamveergit Sep 20, 2024
8f14b9e
code clean
dharamveergit Sep 28, 2024
b669537
fix: remote deploy name change
dharamveergit Sep 28, 2024
10b812a
deployment: vercel
dharamveergit Sep 28, 2024
1a764fc
fix: dseq
dharamveergit Sep 28, 2024
1092ac7
fix: template id
dharamveergit Sep 28, 2024
50c1427
fix: error code
dharamveergit Sep 28, 2024
d1c9e7f
fix: code clean (remote Deploy)
dharamveergit Oct 3, 2024
73fb6be
fix: queries
dharamveergit Oct 3, 2024
0666366
fix: build errors
dharamveergit Oct 3, 2024
a81105b
fix: bitbucket auth error
dharamveergit Oct 3, 2024
c2cff54
fix: (Remote Deploy) - Query keys , Remote Deploy Services
dharamveergit Oct 4, 2024
3cb2b73
fix: (remote-deploy) Camel case
dharamveergit Oct 4, 2024
d5a18ff
fix: types (Remote Deploy) Github
dharamveergit Oct 4, 2024
98330fd
fix: remote types
dharamveergit Oct 4, 2024
e26077e
fix: vercel deploy
dharamveergit Oct 4, 2024
394db4d
fix: revert vercel deploy
dharamveergit Oct 4, 2024
e7546e0
fix: dot env build error (deploy-web)
dharamveergit Oct 5, 2024
55e35c6
fix: gitlab service
dharamveergit Oct 5, 2024
4906c4b
fix: boolean isRemoteDeploy
dharamveergit Oct 6, 2024
724cd10
fix: openapi type to dev
dharamveergit Oct 6, 2024
5ff0dd4
fix: gitlab refresh token
dharamveergit Oct 8, 2024
7a39d45
fix: useMemo in envVArUpdater
dharamveergit Oct 10, 2024
f17f863
fix: class in remote deploy
dharamveergit Oct 10, 2024
8fa6e86
fix(repo): cn
dharamveergit Oct 21, 2024
c664fd2
Merge branch 'main' of https://github.com/dharamveergit/console
dharamveergit Oct 30, 2024
df11269
chore: typo
dharamveergit Oct 30, 2024
3b8a200
chore: conflicts
dharamveergit Oct 30, 2024
977053b
chore: conflicts
dharamveergit Oct 30, 2024
147f329
chore: conflicts
dharamveergit Oct 30, 2024
f22c9e8
chore: bugs
dharamveergit Oct 30, 2024
f1c0506
fix: github re-login
dharamveergit Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"scope-enum": [
2,
"always",
[
"network",
"wallet",
"sdl",
"user",
"auth",
"billing",
"provider",
"deployment",
"certificate",
"dx",
"config",
"stats",
"release",
"repo",
"styling"
]
]
}
}
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ apps/indexer/.env*
apps/landing/.env*
apps/provider-console/.env*
apps/provider-proxy/.env*
apps/stats-web/.env*

**/.next
*.md
Expand Down
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @akash-network/console
35 changes: 35 additions & 0 deletions .github/actions/gcp-deploy/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update GCP VM instance container image

inputs:
instance-name:
description: 'VM instance name'
required: true
image:
description: 'Docker image tag'
required: true
zone:
description: 'GCP zone'
required: true
credentials_json:
description: 'Service account credentials JSON'
required: true


runs:
using: "composite"
steps:
- name: 'Authenticate with Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ inputs.credentials_json }}

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'

- name: Update image
shell: bash
run: |
gcloud compute instances update-container ${{ inputs.instance-name }} \
--container-image=${{ inputs.image }} --zone ${{ inputs.zone }};
111 changes: 111 additions & 0 deletions .github/workflows/deploy-api-to-akash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Deploy API to Akash

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: true
type: string

concurrency:
group: ${{ github.workflow }}

env:
ORG: akash-network
REPO: provider
CLIENT: provider-services
CLIENT_VERSION: 0.6.4
ARCH: linux_amd64
NET: mainnet
BLOCK_TIME: 1s
CHAIN_LATENCY: 30
AKASH_KEYRING_BACKEND: file
AKASH_BROADCAST_MODE: block
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
MIN_BALANCE: 10
AKASH_GSEQ: 1
AKASH_OSEQ: 1
SDL: deploy.yaml
PARSED_SDL: ${{ github.workspace }}/${{ github.event.inputs.project-path }}/deploy-parsed.yaml
PROVIDER: ${{ secrets.AKASH_PROVIDER }}
AKASH_PROVIDER: ${{secrets.AKASH_PROVIDER}}

SQL_PROXY_AUTH_TOKEN: ${{secrets.SQL_PROXY_AUTH_TOKEN}}

jobs:
define-vars:
name: Define Variables
runs-on: ubuntu-latest

outputs:
app: ${{ steps.vars.outputs.app }}
image: ${{ steps.vars.outputs.image }}

steps:
- name: Define common variables
id: vars
run: |
tag=${{ github.event.inputs.tag }}
prerelease_type=$(echo "$tag" | sed -n 's/.*-\([a-zA-Z]*\).*/\1/p')
app="api-${prerelease_type:-prod}"
version="${tag#console-api/v}"
image="${{ vars.API_REGISTRY }}:$version"

echo "app=${app}"
echo "image=${image}"

echo "app=${app}" >> $GITHUB_OUTPUT
echo "image=${image}" >> $GITHUB_OUTPUT

deploy-sandbox:
name: Deploy Sandbox
needs: define-vars
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main

- name: Deploy
uses: akash-network/akash-deploy-action/.github/actions/deploy@main
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_API_STAGING_SANDBOX_TOKEN }}
API_DOMAIN: ${{ vars.API_SANDBOX_STAGING_DOMAIN }}
AKASH_DSEQ: ${{ secrets.API_BETA_SANDBOX_AKASH_DSEQ }}
with:
project-path: apps/api
project-name: ${{ needs.define-vars.outputs.app }}-sandbox
image: ${{ needs.define-vars.outputs.image }}
seed: ${{ secrets.WALLET_MNEMONIC }}
password: ${{ secrets.WALLET_PASSWORD }}

deploy-mainnet:
name: Deploy Mainnet
needs: [define-vars, deploy-sandbox]
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Deploy
uses: akash-network/akash-deploy-action/.github/actions/deploy@main
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_API_STAGING_MAINNET_TOKEN }}
API_DOMAIN: ${{ vars.API_MAINNET_STAGING_DOMAIN }}
AKASH_DSEQ: ${{ secrets.API_BETA_MAINNET_AKASH_DSEQ }}
with:
project-path: apps/api
project-name: ${{ needs.define-vars.outputs.app }}-mainnet
image: ${{ needs.define-vars.outputs.image }}
password: ${{ secrets.WALLET_PASSWORD }}
seed: ${{ secrets.WALLET_MNEMONIC }}
59 changes: 59 additions & 0 deletions .github/workflows/deploy-web-to-gcp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Deploy Console Web to GCP

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: true
type: string

concurrency:
group: ${{ github.workflow }}

jobs:
deploy:
name: Deploy to GCP
runs-on: ubuntu-latest

steps:
- name: Define variables
id: vars
run: |
tag="${{ github.event.inputs.tag }}"

if [[ ! "$tag" =~ ^console-web/v[0-9]+\.[0-9]+\.[0-9]+(-beta\.[0-9]+)?$ ]]; then
echo "Invalid tag. Expected console-web/v* or console-web/v*-beta.*"
exit 1
fi

version="${tag#*/v}"

instance_name=""

if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$ ]]; then
instance_name="${{ vars.BETA_WEB_INSTANCE_NAME }}"
elif [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
instance_name="${{ vars.PROD_WEB_INSTANCE_NAME }}"
fi

image="${{ vars.WEB_REGISTRY }}:$version"

echo "instance-name=${instance_name}"
echo "image=${image}"

echo "instance-name=${instance_name}" >> "$GITHUB_OUTPUT"
echo "image=${image}" >> "$GITHUB_OUTPUT"

- name: Checkout repository
if: steps.vars.outputs.instance-name != '' && steps.vars.outputs.image != ''
uses: actions/checkout@v4

- name: Deploy
if: steps.vars.outputs.instance-name != '' && steps.vars.outputs.image != ''
uses: ./.github/actions/gcp-deploy
with:
instance-name: ${{ steps.vars.outputs.instance-name }}
image: ${{ steps.vars.outputs.image }}
credentials_json: ${{ secrets.GCP_SA_KEY }}
zone: ${{ vars.GCP_ZONE }}
4 changes: 1 addition & 3 deletions .github/workflows/docker-build-deploy-web.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Deploy Web CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

Expand All @@ -24,4 +22,4 @@ jobs:

- name: Build the Docker image
if: steps.filter.outputs.deploy-web == 'true'
run: npm run dc:build -- deploy-web
run: packages/docker/script/dc.sh build deploy-web --build-arg DEPLOYMENT_ENV=production
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-indexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:

- name: Build the Docker image
if: steps.filter.outputs.indexer == 'true'
run: npm run dc:build -- indexer
run: packages/docker/script/dc.sh build indexer
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-provider-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:

- name: Build the Docker image
if: steps.filter.outputs.provider-proxy == 'true'
run: npm run dc:build -- provider-proxy
run: packages/docker/script/dc.sh build provider-proxy
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-stats-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:

- name: Build the Docker image
if: steps.filter.outputs.stats-web == 'true'
run: npm run dc:build -- stats-web
run: packages/docker/script/dc.sh build stats-web --build-arg DEPLOYMENT_ENV=production
80 changes: 80 additions & 0 deletions .github/workflows/release-all-apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Release All Apps

on:
push:
branches: ["main"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.14.0

- name: Restore root node_modules cache
uses: martijnhols/actions-cache@v3
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get the latest tag
id: latest_tag
run: |
output="value=$(git describe --tags --abbrev=0)"
echo $output
echo $output >> $GITHUB_OUTPUT

- name: Generate releases and build docker images
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "CI"
npm run release -w apps/api -- --preRelease=beta --verbose --ci -r ${{ vars.API_REGISTRY }}
npm run release -w apps/deploy-web -- --preRelease=beta -f --verbose --ci -r ${{ vars.WEB_REGISTRY }}

- name: Trigger deployments
run: |
latest_tag=${{ steps.latest_tag.outputs.value }}
api_tags=$(git tag --sort=-creatordate --merged | grep '^console-api/v')
new_api_tag=$(echo "$api_tags" | awk -v latest="$latest_tag" '$0 > latest' | head -n 1)

if [ -z "$new_api_tag" ]; then
echo "No new console-api tag found. Skipping api deployment."
else
echo "Dispatching deploy workflow for: $new_api_tag"
curl -X POST \
-H "Authorization: token ${{ secrets.AKASH_GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/deploy-api-to-akash.yml/dispatches \
-d "{\"ref\": \"main\", \"inputs\": { \"tag\": \"$new_api_tag\" }}"
fi

Loading
Loading