mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
new: add new flags for bor service file
This commit is contained in:
parent
9f6df9ade0
commit
f76491d53b
1 changed files with 9 additions and 9 deletions
18
.github/workflows/linuxpackage.yml
vendored
18
.github/workflows/linuxpackage.yml
vendored
|
|
@ -3,7 +3,7 @@ name: Linux package
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
- "v*.*.*"
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
sudo apt-get -yqq install libpq-dev build-essential
|
||||
gem install --no-document fpm
|
||||
fpm --version
|
||||
|
||||
|
||||
make bor
|
||||
|
||||
cat > bor.service <<- "EOF"
|
||||
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
WorkingDirectory=/etc/bor/
|
||||
EnvironmentFile=/etc/bor/metadata
|
||||
ExecStartPre=/bin/mkdir -p /var/log/matic-logs/
|
||||
ExecStart=/bin/bash -c "/usr/bin/bor --datadir /etc/bor/dataDir --port '30303' --rpc --rpcaddr '0.0.0.0' --rpcvhosts '*' --rpccorsdomain '*' --rpcport '8545' --ipcpath /etc/bor/geth.ipc --rpcapi 'bor,db,eth,net,web3,txpool' --networkid ${NETWORK_ID} --gasprice '0' --keystore /etc/bor/dataDir/keystore --unlock ${VALIDATOR_ADDRESS} --password /etc/bor/dataDir/password.txt --allow-insecure-unlock --maxpeers 150 --mine > /var/log/matic-logs/bor.log 2>&1"
|
||||
ExecStart=/bin/bash -c "/usr/bin/bor --datadir /etc/bor/dataDir --port '30303' --rpc --rpcaddr '0.0.0.0' --rpcvhosts '*' --rpccorsdomain '*' --rpcport '8545' --ipcpath /etc/bor/geth.ipc --rpcapi 'bor,db,eth,net,web3,txpool,bor' --networkid ${NETWORK_ID} --miner.gasprice '1000000000' --miner.gaslimit '24000000' --txpool.nolocals --txpool.accountslots '128' --txpool.globalslots '16384' --txpool.accountqueue '128' --txpool.globalqueue '20000' --txpool.lifetime '0h16m0s' --keystore /etc/bor/dataDir/keystore --unlock ${VALIDATOR_ADDRESS} --password /etc/bor/dataDir/password.txt --allow-insecure-unlock --maxpeers 150 --mine > /var/log/matic-logs/bor.log 2>&1"
|
||||
Type=simple
|
||||
User=root
|
||||
EOF
|
||||
|
|
@ -60,7 +60,7 @@ jobs:
|
|||
bor.service=/etc/systemd/system/ \
|
||||
build/bin/bor=/usr/bin/ \
|
||||
metadata=/etc/bor/
|
||||
|
||||
|
||||
mkdir packages-v${{ env.RELEASE_VERSION }}
|
||||
|
||||
mv matic-bor_${{ env.RELEASE_VERSION }}_amd64.deb packages-v${{ env.RELEASE_VERSION }}/
|
||||
|
|
@ -75,14 +75,14 @@ jobs:
|
|||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
|
||||
SOURCE_DIR: 'packages-v${{ env.RELEASE_VERSION }}'
|
||||
DEST_DIR: 'v${{ env.RELEASE_VERSION }}'
|
||||
AWS_REGION: "us-east-1" # optional: defaults to us-east-1
|
||||
SOURCE_DIR: "packages-v${{ env.RELEASE_VERSION }}"
|
||||
DEST_DIR: "v${{ env.RELEASE_VERSION }}"
|
||||
|
||||
- name: Slack Notification
|
||||
uses: rtCamp/action-slack-notify@v2.0.0
|
||||
env:
|
||||
SLACK_CHANNEL: code-releases
|
||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||
SLACK_TITLE: 'New linux package for Bor v${{ env.RELEASE_VERSION }} just got released'
|
||||
SLACK_MESSAGE: 'Package has been uploaded to S3 bucket for public use and available at https://matic-public.s3.amazonaws.com/v${{ env.RELEASE_VERSION }}/matic-bor_${{ env.RELEASE_VERSION }}_amd64.deb'
|
||||
SLACK_TITLE: "New linux package for Bor v${{ env.RELEASE_VERSION }} just got released"
|
||||
SLACK_MESSAGE: "Package has been uploaded to S3 bucket for public use and available at https://matic-public.s3.amazonaws.com/v${{ env.RELEASE_VERSION }}/matic-bor_${{ env.RELEASE_VERSION }}_amd64.deb"
|
||||
|
|
|
|||
Loading…
Reference in a new issue