forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/release run docs (0xPolygonHermez#1725)
* Update running prod docs, and public testnet config
- Loading branch information
1 parent
51275b4
commit 63da3fd
Showing
8 changed files
with
142 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' # this action will only run on tags that follow semver | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: | | ||
hermeznetwork/zkevm-node:${{ github.ref_name }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: goreleaser | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' # this action will only run on tags that follow semver | ||
|
||
jobs: | ||
goreleaser: | ||
releaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -22,13 +22,33 @@ jobs: | |
- name: Get packr | ||
run: go get -u github.com/gobuffalo/packr/v2/packr2 | ||
|
||
- name: Prepare | ||
run: git reset --hard | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN_RELEASE }} | ||
GITHUB_TOKEN: ${{ secrets.TOKEN_RELEASE }} | ||
|
||
- name: Get tag | ||
uses: olegtarasov/[email protected] | ||
id: tagName | ||
|
||
- name: Put testnet artifacts into a single zip | ||
run: | | ||
mkdir -p testnet/config/environments/public | ||
mkdir -p testnet/db/scripts | ||
cp config/environments/public/* testnet/config/environments/public | ||
cp docker-compose.yml testnet | ||
cp db/scripts/init_prover_db.sql testnet/db/scripts | ||
mv testnet/config/environments/public/example.env testnet | ||
sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" testnet/docker-compose.yml | ||
zip -r testnet.zip testnet | ||
- name: Publish testnet zip into release | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'testnet.zip' | ||
repo-token: ${{ secrets.TOKEN_RELEASE }} | ||
release-tag: ${{ steps.tagName.outputs.tag }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# URL of a JSON RPC for Goerli | ||
ZKEVM_NODE_ETHERMAN_URL = "http://your.L1node.url" | ||
# PATH WHERE THE STATEDB POSTGRES CONTAINER WILL STORE PERSISTENT DATA | ||
ZKEVM_NODE_STATEDB_DATA_DIR = "/path/to/persistent/data/stetedb" | ||
# PATH WHERE THE POOLDB POSTGRES CONTAINER WILL STORE PERSISTENT DATA | ||
ZKEVM_NODE_POOLDB_DATA_DIR = "/path/to/persistent/data/pooldb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,3 @@ | |
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.