Skip to content

Commit fc7b43e

Browse files
committed
feat: now works on schedule
BREAKING CHANGE: this is not a server now
1 parent 98bac8f commit fc7b43e

File tree

106 files changed

+4170
-5412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+4170
-5412
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.github
2+
.git
3+
.husky
4+
.vscode
5+
build
6+
node_modules
7+
*.log
8+
.env

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/release-docker.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ jobs:
3131
run: |
3232
yarn install --immutable
3333
yarn typecheck:ci
34-
yarn lint:ci
35-
yarn prettier:ci
34+
yarn check:ci

.github/workflows/release.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: Release and deploy
1+
name: Release
22
on:
33
push:
44
branches:
55
- main # change to main if needed
66
- next
7+
78
jobs:
89
release:
910
runs-on: ubuntu-latest
@@ -27,13 +28,25 @@ jobs:
2728
run: |
2829
yarn install --immutable
2930
yarn typecheck:ci
30-
yarn lint:ci
31-
yarn prettier:ci
31+
yarn check:ci
32+
33+
- name: Login to GitHub Container Registry
34+
uses: docker/login-action@v3
35+
with:
36+
registry: ghcr.io
37+
username: ${{ github.actor }}
38+
password: ${{ github.token }}
3239

33-
- uses: superfly/flyctl-actions/setup-flyctl@master
34-
if: ${{ github.ref_name == 'main' }}
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v3
3542

36-
- run: flyctl deploy --strategy bluegreen --remote-only --env SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} --env LIDO_AUTH_TOKEN=${{ secrets.LIDO_AUTH_TOKEN }} --env RESOLV_AUTH_TOKEN=${{ secrets.RESOLV_AUTH_TOKEN }} --build-target app --dockerfile docker/Dockerfile.flyio --ha=false
37-
if: ${{ github.ref_name == 'main' }}
43+
- name: Semantic Release
44+
uses: cycjimmy/semantic-release-action@v4
45+
with:
46+
extra_plugins: |
47+
@codedependant/semantic-release-docker
3848
env:
39-
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
49+
GITHUB_TOKEN: ${{ github.token }}
50+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
51+
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
52+
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
build
22
node_modules
33
.env
4+
output.json
5+
tmp
46

57
# Sentry Config File
68
.env.sentry-build-plugin

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22
1+
24

.releaserc.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
{
22
"branches": [
3-
{
4-
"name": "main"
5-
}
3+
{ "name": "main" },
4+
{ "name": "next", "channel": "next", "prerelease": "next" },
5+
{ "name": "+([0-9])?(.{+([0-9]),x}).x" }
66
],
77
"plugins": [
88
"@semantic-release/commit-analyzer",
99
"@semantic-release/release-notes-generator",
1010
[
1111
"@semantic-release/github",
12-
{
13-
"successComment": false,
14-
"failTitle": false
15-
}
12+
{ "successComment": false, "failTitle": false }
1613
],
1714
[
1815
"@codedependant/semantic-release-docker",
@@ -21,9 +18,8 @@
2118
"{{#if prerelease.[0]}}{{prerelease.[0]}}{{else}}latest{{/if}}",
2219
"{{version}}"
2320
],
24-
"dockerArgs": {
25-
"PACKAGE_VERSION": "{{version}}"
26-
},
21+
"dockerArgs": { "PACKAGE_VERSION": "{{version}}" },
22+
"dockerPlatform": ["linux/amd64", "linux/arm64"],
2723
"dockerImage": "apy-server",
2824
"dockerRegistry": "ghcr.io",
2925
"dockerProject": "gearbox-protocol",

.vscode/extensions.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"recommendations": [
3-
"esbenp.prettier-vscode",
4-
"nomicfoundation.hardhat-solidity",
5-
"dbaeumer.vscode-eslint"
6-
]
2+
"recommendations": ["biomejs.biome"]
73
}

0 commit comments

Comments
 (0)