Skip to content

Commit

Permalink
Merge pull request #138 from lidofinance/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
infloop authored Jul 22, 2023
2 parents 28357e4 + 382e1aa commit 5689e24
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 120 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/ci-prod.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
name: CI Build prod image

on:
workflow_call:
inputs:
tag:
description: "tag to deploy from"
default: ""
required: false
type: string
release:
types: [released]

permissions:
contents: read
permissions: {}

jobs:
# test:
Expand All @@ -21,27 +15,11 @@ jobs:
# needs: test
name: Build and deploy
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Tag name
id: tag_name
run: |
if [ '${{ inputs.tag }}' = '' ]; then
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "TAG=$TAG" >> $GITHUB_OUTPUT
fi
env:
TAG: ${{ inputs.tag }}

- name: Build prod image
uses: lidofinance/dispatch-workflow@v1
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
TARGET_REPO: "lidofinance/infra-mainnet"
TAG: "${{ steps.tag_name.outputs.TAG }}"
TAG: "${{ github.event.release.tag_name }}"
TARGET_WORKFLOW: "build_critical_council_daemon_staking_router.yaml"
46 changes: 0 additions & 46 deletions .github/workflows/create-tag-and-trigger-deploy.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/prepare-release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Prepare release draft
on:
push:
branches:
- main

permissions:
contents: write

jobs:
prepare-release-draft:
uses: lidofinance/actions/.github/workflows/prepare-release-draft.yml@main
with:
target: main
46 changes: 0 additions & 46 deletions .github/workflows/prepare-release.yml

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is no longer used by semantic-release
For the latest release notes, please see the [GitHub releases page](https://github.com/lidofinance/lido-council-daemon/releases).

## [1.8.2](https://github.com/lidofinance/lido-council-daemon/compare/1.8.1...1.8.2) (2023-04-27)


Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,13 @@ $ yarn test:e2e
# test coverage
$ yarn test:cov
```

## Release flow

To create a new release:

1. Merge all changes to the `main` branch.
1. After the merge, the `Prepare release draft` action will run automatically. When the action is complete, a release draft is created.
1. When you need to release, go to Repo → Releases.
1. Publish the desired release draft manually by clicking the edit button - this release is now the `Latest Published`.
1. After publication, the action to create a release bump will be triggered automatically.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"start:prod": "node --max-old-space-size=4096 dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
Expand Down
2 changes: 1 addition & 1 deletion src/health/health.constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const MAX_BLOCK_DELAY_SECONDS = 5 * 60;

export const MAX_MEMORY_HEAP = 1024 * 1024 * 1024 * 2; // 2 GB
export const MAX_MEMORY_HEAP = 1024 * 1024 * 1024 * 4; // 4 GB

0 comments on commit 5689e24

Please sign in to comment.