Skip to content

Commit

Permalink
Merge pull request #984 from godwokenrises/1.12-rc
Browse files Browse the repository at this point in the history
Merge 1.12.0-rc1
  • Loading branch information
jjyr authored Feb 14, 2023
2 parents 26feb50 + fa7a522 commit ab67adc
Show file tree
Hide file tree
Showing 41 changed files with 152 additions and 141 deletions.
55 changes: 23 additions & 32 deletions .github/workflows/web3-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ name: Web3 Docker Build Push

on:
push:
branches: ["develop", '*-rc*']
paths:
- 'web3/**'
# todo: how to release tag under monorepo?
tags: ["web3@v*.*.*"]
branches: [ 'main', 'dev*', 'v1*', '1.*' ]
# Publish semver tags as releases.
tags: [ 'v*.*.*', '1.*' ]
# This event occurs when a GitHub Actions workflow is manually triggered.
# For more information, see
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
# Note: Write access to the repository is required to perform these steps.
workflow_dispatch:
inputs:
runner_type:
description: 'Choose an appropriate runner'
required: true
default: ubuntu-20.04
type: choice
options:
- ubuntu-20.04
- self-hosted

env:
# Use ghcr.io only
Expand Down Expand Up @@ -35,7 +46,6 @@ jobs:
# https://github.com/docker/login-action
# GitHub automatically creates a unique GITHUB_TOKEN secret to use in this workflow.
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -49,37 +59,18 @@ jobs:
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}

- name: Get Current Commit Id
id: commit
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
tags: |
type=ref,event=tag
type=ref,event=branch,suffix=-{{date 'YYYYMMDDHHmm'}}
type=ref,event=branch
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: New Commit Build => Build and push commit image to ${{ env.REGISTRY }}
if: ${{ github.ref_type != 'tag' }}
uses: docker/build-push-action@v2
with:
file: ./web3/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}-${{ steps.commit.outputs.sha_short }}
labels: ${{ steps.meta.outputs.labels }}

# extract web3 tags from the special format: web3@v*.*.*
- name: Split web3 tags
if: ${{ startsWith(github.ref, 'refs/tags') }}
env:
metatags: ${{ steps.meta.outputs.tags }}
id: split
run: echo "::set-output name=tags::${metatags/web3@/}"

# Build and push Docker image with Buildx (don't push on PR)
# only for new tag
- name: Official Release Build => Build and push tag image to ${{ env.REGISTRY }}
if: ${{ startsWith(github.ref, 'refs/tags') }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: ./web3/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.split.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

56 changes: 23 additions & 33 deletions .github/workflows/web3-indexer-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ name: Web3 Indexer Docker Build Push

on:
push:
branches: ["develop", '*-rc*']
paths:
- 'web3/**'
# todo: how do we release tag under monorepo?
tags: ["web3@v*.*.*"]
branches: [ 'main', 'dev*', 'v1*', '1.*' ]
# Publish semver tags as releases.
tags: [ 'v*.*.*', '1.*' ]
# This event occurs when a GitHub Actions workflow is manually triggered.
# For more information, see
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
# Note: Write access to the repository is required to perform these steps.
workflow_dispatch:
inputs:
runner_type:
description: 'Choose an appropriate runner'
required: true
default: ubuntu-20.04
type: choice
options:
- ubuntu-20.04
- self-hosted

env:
# Use ghcr.io only
Expand Down Expand Up @@ -35,7 +46,6 @@ jobs:
# https://github.com/docker/login-action
# GitHub automatically creates a unique GITHUB_TOKEN secret to use in this workflow.
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -49,38 +59,18 @@ jobs:
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}

- name: Get Current Commit Id
id: commit
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
tags: |
type=ref,event=tag
type=ref,event=branch,suffix=-{{date 'YYYYMMDDHHmm'}}
type=ref,event=branch
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: New Commit Build => Build and push commit image to ${{ env.REGISTRY }}
if: ${{ github.ref_type != 'tag' }}
uses: docker/build-push-action@v2
with:
file: web3/docker/indexer/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}-${{ steps.commit.outputs.sha_short }}
labels: ${{ steps.meta.outputs.labels }}

# extract web3 tags from the special format: web3@v*.*.*
- name: Split web3 tags
if: ${{ startsWith(github.ref, 'refs/tags') }}
env:
metatags: ${{ steps.meta.outputs.tags }}
id: split
run: echo "::set-output name=tags::${metatags/web3@/}"

# Build and push Docker image with Buildx (don't push on PR)
# only for new tag
- name: Official Release Build => Build and push tag image to ${{ env.REGISTRY }}
if: ${{ startsWith(github.ref, 'refs/tags') }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
file: web3/docker/indexer/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.split.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com).

## [Unreleased]

## [v1.12.0-rc1] - 2023-02-08

The `web3` and `web3-indexer` components have been added to the monorepo since this release, and we bumped the version from `v1.8.x` to `v1.12.x` to unify the version.

We introduced a breaking change of the config file in [#946](https://github.com/godwokenrises/godwoken/pull/946). The consensus-related options are moved into option `consensus`, and we put the builtin `testnet` and `mainnet` consensus into the godwoken program. This change reduces the operation works of node maintainers.

Highlights:

- Builtin mainnet and testnet consensus config [#946](https://github.com/godwokenrises/godwoken/pull/946)
- Add web3 and web3-indexer into the monorepo [#910](https://github.com/godwokenrises/godwoken/pull/910)

Bug fixes:

- gwos-evm: fix big mod exp [#932](https://github.com/godwokenrises/godwoken/pull/932)
- fix(web3): eth_getFilterLogs should return all matched logs [#947](https://github.com/godwokenrises/godwoken/pull/947)

Enhenchment:

- chore: use TransactionDB and refactor store [#903](https://github.com/godwokenrises/godwoken/pull/903)
- chore: refactor rpc server [#927](https://github.com/godwokenrises/godwoken/pull/927)
- Improve the error code of API when executing transactions [#930](https://github.com/godwokenrises/godwoken/pull/930)

## [v1.8.0-rc2] - 2022-12-19

A major change in this release is re-interpreting the meaning of the `xxx_timepoint` field to `finalized timestamp`.
Expand Down
Loading

0 comments on commit ab67adc

Please sign in to comment.