good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
dc14f540
Unverified
Commit
dc14f540
authored
Mar 21, 2020
by
Jaynti Kanani
Browse files
Options
Downloads
Patches
Plain Diff
github workflow for linux packages
parent
6cc8e625
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/linuxpackage.yml
+76
-0
76 additions, 0 deletions
.github/workflows/linuxpackage.yml
Makefile
+3
-0
3 additions, 0 deletions
Makefile
with
79 additions
and
0 deletions
.github/workflows/linuxpackage.yml
0 → 100644
+
76
−
0
View file @
dc14f540
name
:
Linux package
on
:
push
:
tags
:
-
'
v*.*.*'
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Install Go
uses
:
actions/setup-go@v1
with
:
go-version
:
1.13
-
name
:
Set up Ruby
2.6
uses
:
actions/setup-ruby@v1
with
:
ruby-version
:
2.6
-
name
:
Build package
run
:
|
set -x
sudo apt-get -yqq install libpq-dev build-essential
gem install --no-document fpm
fpm --version
make bor
cat > bor.service <<- "EOF"
[Unit]
Description=bor
[Service]
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"
Type=simple
User=root
EOF
cat > after_install.sh <<- "EOF"
#!/bin/bash
touch /etc/bor/metadata
EOF
cat > metadata <<- "EOF"
NETWORK_ID=
VALIDATOR_ADDRESS=
EOF
fpm -s dir -t deb --deb-user root --deb-group root -n matic-bor -v ${GITHUB_REF/refs\/tags\//} \
--after-install after_install.sh \
bor.service=/etc/systemd/system/ \
build/bin/bor=/usr/bin/ \
metadata=/etc/bor/
mkdir packages-${GITHUB_REF/refs\/tags\//}
mv matic-bor_${GITHUB_REF/refs\/tags\//}_amd64.deb packages-${GITHUB_REF/refs\/tags\//}/
ls packages-${GITHUB_REF/refs\/tags\//}/
-
uses
:
jakejarvis/s3-sync-action@master
with
:
args
:
--acl public-read
env
:
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-${GITHUB_REF/refs\/tags\//}'
DEST_DIR
:
'
${GITHUB_REF/refs\/tags\//}'
This diff is collapsed.
Click to expand it.
Makefile
+
3
−
0
View file @
dc14f540
...
@@ -11,15 +11,18 @@
...
@@ -11,15 +11,18 @@
GOBIN
=
$(
shell
pwd
)
/build/bin
GOBIN
=
$(
shell
pwd
)
/build/bin
GO
?=
latest
GO
?=
latest
GORUN
=
go run
GORUN
=
go run
GOPATH
=
$(
shell go
env
GOPATH
)
bor
:
bor
:
$(
GORUN
)
build/ci.go
install
./cmd/bor
$(
GORUN
)
build/ci.go
install
./cmd/bor
mkdir
-p
$(
GOPATH
)
/bin/
cp
$(
GOBIN
)
/bor
$(
GOPATH
)
/bin/
cp
$(
GOBIN
)
/bor
$(
GOPATH
)
/bin/
@
echo
"Done building."
@
echo
"Done building."
@
echo
"Run
\"
$(
GOBIN
)
/bor
\"
to launch bor."
@
echo
"Run
\"
$(
GOBIN
)
/bor
\"
to launch bor."
all
:
all
:
$(
GORUN
)
build/ci.go
install
$(
GORUN
)
build/ci.go
install
mkdir
-p
$(
GOPATH
)
/bin/
cp
$(
GOBIN
)
/
*
$(
GOPATH
)
/bin/
cp
$(
GOBIN
)
/
*
$(
GOPATH
)
/bin/
android
:
android
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment