Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DepositValidatorRewardsPool #3

Closed
wants to merge 162 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
0e421d8
docs: add documentation on documentation deployment (#13739)
julienrbrt Nov 3, 2022
71467b4
add DepositValidatorRewardsPool
icafa Nov 3, 2022
155bcfa
refactor(distribution): CLI tests using Tendermint Mock (#13692)
likhita-809 Nov 3, 2022
3034a9d
fix(bank): fix unhandled error for vesting (#13690)
fedekunze Nov 3, 2022
2044804
chore: use gateway fork (#13754)
tac0turtle Nov 3, 2022
634783f
docs: staking param docs fix #13755
tac0turtle Nov 3, 2022
779c0ac
chore: add `TestSendCoins_Invalid_SendLockedCoins` to tests/integrati…
julienrbrt Nov 3, 2022
08be7ee
refactor: extract `MockTendermintRPC` to `testutil/cli`
julienrbrt Nov 3, 2022
a51aa51
refactor: simplify app legacy (#13756)
julienrbrt Nov 4, 2022
5a94358
refactor: cleanup simapp (#13757)
julienrbrt Nov 4, 2022
2bb114a
fix: Evidence API does not decode the hash properly (#13740)
likhita-809 Nov 4, 2022
39c5c07
fix: misc fixes for cosmos-rosetta (#13583)
rllola Nov 4, 2022
4b26d9e
chore: use tagged rosetta version (#13765)
julienrbrt Nov 4, 2022
c3c39b9
build(deps): Bump github.com/btcsuite/btcd/btcec/v2 from 2.2.1 to 2.3…
dependabot[bot] Nov 4, 2022
d2e4154
docs: update spec structure (#13768)
julienrbrt Nov 4, 2022
d6e5bb3
docs: fix toc links (#13770)
julienrbrt Nov 4, 2022
7efeb82
refactor: rename migrations from `v42`, `v43`, `v{SDK}` to `v1`, `v2`…
julienrbrt Nov 7, 2022
6ae5641
docs: set api endpoints to localhost by default (#13778)
tac0turtle Nov 7, 2022
0c5c536
chore: [types/bech32] add a fuzzer for DecodeAndConvert (#13775)
odeke-em Nov 7, 2022
5af7b59
build(deps): Bump tailwindcss from 3.2.1 to 3.2.2 in /docs (#13783)
dependabot[bot] Nov 7, 2022
c85447c
docs: add documentation about depinject and app wiring (#13683)
julienrbrt Nov 7, 2022
b49f948
feat: Add proto annotations for Amino JSON (#13501)
amaury1093 Nov 7, 2022
b6bd34f
add test for deposit validator rewards pool
icafa Nov 8, 2022
b4b4e4a
chore: remove useless dotfiles (#13784)
julienrbrt Nov 8, 2022
a3e1b99
test: integrate rosetta-cli into rosetta-ci (#13785)
JulianToledano Nov 8, 2022
74e9d54
feat!: integrate autocli and reflection services with simapp legacy (…
aaronc Nov 8, 2022
645df31
adding clang-extra-tools for clang-format proto-fmt (#13791)
damiannolan Nov 8, 2022
79add5e
build(deps): Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#13798)
dependabot[bot] Nov 8, 2022
ff168c2
build(deps): Bump github.com/prometheus/client_golang from 1.13.1 to …
dependabot[bot] Nov 8, 2022
0d288e9
test: Add some tests and remove dead code in store (#13614)
facundomedica Nov 8, 2022
a785bf5
build(deps): Bump loader-utils from 2.0.2 to 2.0.3 in /docs (#13800)
dependabot[bot] Nov 8, 2022
22f3261
refactor: add error log when iavl set failed (#13803)
yihuang Nov 9, 2022
f8e40d7
refactor: remove client/keys.KeysCdc (#13781)
Nov 9, 2022
8bfc3bf
feat: add `--output-document` flag to export CLI command to allow wri…
Nov 9, 2022
50e8961
remove extra unneeded log (#13806)
tac0turtle Nov 9, 2022
76be730
fix: fix proto files created as super-user (#13801)
julienrbrt Nov 9, 2022
4f7d9ea
refactor: clean-up test helpers and tmcli (#13805)
julienrbrt Nov 9, 2022
bcdf81c
feat: add basic autocli config to every module (#13786)
aaronc Nov 9, 2022
90fd3e9
fix: propagate events in x/group through sdk.Results (#13808)
damiannolan Nov 9, 2022
61effe8
feat: ABCI 1.0 baseapp integration (#13453)
kocubinski Nov 9, 2022
a5e8e2d
bump golang.org/x/crypto version (#13822)
tac0turtle Nov 10, 2022
d314a12
fix: bank store migration (#13821)
okwme Nov 10, 2022
d32d896
build(deps): Bump github.com/btcsuite/btcd/btcec/v2 from 2.3.0 to 2.3…
dependabot[bot] Nov 10, 2022
f001b46
feat(types): set custom GasConfig on Context for GasKVStore (#13826)
fedekunze Nov 10, 2022
4ff588d
docs: improve keyring package docs (#13835)
rootulp Nov 10, 2022
d725be5
build(deps): Bump actions/dependency-review-action from 2 to 3 (#13839)
dependabot[bot] Nov 11, 2022
d66b7fa
feat: Settable PrepareProposal handler (#13831)
kocubinski Nov 11, 2022
f8353f8
chore: Update .mergify.yml #13840
alexanderbez Nov 11, 2022
a926be1
chore: update .mergify.yml #13841
alexanderbez Nov 11, 2022
b00cc29
fix: populate oldest_block_identifier and wrap jsonrpc errors (#13832)
JulianToledano Nov 12, 2022
7e69187
extra check (#13846)
tac0turtle Nov 12, 2022
78886bc
chore: ADR-060 Updates (#13844)
alexanderbez Nov 14, 2022
fc21215
feat: add vscode e2e config (#13851)
julienrbrt Nov 14, 2022
f1fc44e
docs: add 0.47 to docs (#13852)
julienrbrt Nov 14, 2022
d9bc5ac
fix: `.String()` panics when pubkey is set on a `BaseAccount` (#13838)
julienrbrt Nov 14, 2022
ab9ecd5
build(deps): Bump tailwindcss from 3.2.2 to 3.2.4 in /docs (#13856)
dependabot[bot] Nov 14, 2022
394f663
build: fix empty cname (#13860)
julienrbrt Nov 14, 2022
5e1635e
build(deps): Bump github.com/otiai10/copy in /tools/cosmovisor (#13859)
dependabot[bot] Nov 14, 2022
39754dd
build(deps): Bump postcss from 8.4.18 to 8.4.19 in /docs (#13857)
dependabot[bot] Nov 14, 2022
81209e6
docs: add a running in production section (#13807)
tac0turtle Nov 14, 2022
14c582f
fix: Allow underscores in EventRegex (#13861)
alexanderbez Nov 14, 2022
ec27c53
refactor!: migrate to core appmodule.AppModule extension interfaces (…
aaronc Nov 14, 2022
bcff22a
feat: Add tx encode and decode endpoints (#13789)
likhita-809 Nov 15, 2022
5f4350d
refactor(x/nft): remove class&nft id validation (#13836)
Nov 15, 2022
f82775b
docs: add documentation for nft module (#13871)
julienrbrt Nov 15, 2022
3423442
fix(group): add group members weight checks (#13869)
julienrbrt Nov 15, 2022
7661f62
fix(group)!: Fix group min execution period (#13876)
amaury1093 Nov 16, 2022
3f71b79
build(deps): Bump loader-utils from 2.0.3 to 2.0.4 in /docs (#13887)
dependabot[bot] Nov 16, 2022
394f1b9
fix: InitGenesis changes account numbers (upstream fix from Provenanc…
facundomedica Nov 16, 2022
65015c2
chore: add 0.46.5 changelog to main (#13899)
julienrbrt Nov 17, 2022
e2ae2bb
fix: attempt fixing evidence flaky test (#13901)
atheeshp Nov 17, 2022
6dbf113
build(deps): Bump golang.org/x/crypto from 0.2.0 to 0.3.0 (#13907)
dependabot[bot] Nov 17, 2022
2c0d445
refactor: State Streaming Docs + Explicit Config Support (#13894)
alexanderbez Nov 17, 2022
34dcca7
chore: remove typo (#13914)
julienrbrt Nov 18, 2022
9dbae41
Update Makefile (#13920)
faddat Nov 18, 2022
3c565b1
chore: fix `make proto-all` (#13883)
pysel Nov 18, 2022
b425907
ci: add sonarcloud job (#11856)
faddat Nov 18, 2022
eb4afa7
ci: configure sonarcloud (#13921)
julienrbrt Nov 18, 2022
5581f7f
fix: correctly propagate msg errors in gov (#13918)
johnletey Nov 18, 2022
034554c
ci: fix sonarcloud code coverage (#13925)
julienrbrt Nov 18, 2022
d8391cb
build(deps): Bump github.com/btcsuite/btcd/btcec/v2 from 2.3.1 to 2.3…
dependabot[bot] Nov 18, 2022
385bff5
docs: relocate abci.go in docs/building-modules (#13934)
toteki Nov 20, 2022
42597ee
chore: added new field `account-id` with uint64 in `AccountAddressByI…
atheeshp Nov 21, 2022
82b64e6
fix: docker-compose for rosetta-cli tests (#132) (#13946)
rllola Nov 21, 2022
f124cb7
refactor: x/consensus audit changes (#13949)
amaury1093 Nov 21, 2022
c7d4921
build(deps): Bump google.golang.org/grpc from 1.50.1 to 1.51.0 (#13953)
dependabot[bot] Nov 21, 2022
95e370b
build(deps): Bump minimatch, recursive-readdir and serve-handler (#13…
dependabot[bot] Nov 21, 2022
3bb2779
chore: rename `app_legacy` & add sims for 0.47 (#13950)
julienrbrt Nov 21, 2022
d6da703
fix(group): migrate group policy account to base accounts with creden…
julienrbrt Nov 21, 2022
2739f83
fix: types: remove unnecessary/pedantic code from removeZeroCoins (#1…
odeke-em Nov 22, 2022
e1fcb2c
build(deps): Bump actions/add-to-project from 0.3.0 to 0.4.0 (#13975)
dependabot[bot] Nov 22, 2022
ae91105
ci: configure monorepo sonarcloud (#13944)
julienrbrt Nov 23, 2022
b585d17
fix: make downgrade verification work again (#13936)
0Tech Nov 23, 2022
fe5b0ff
feat(textual): Add Enum value renderer (#13853)
amaury1093 Nov 23, 2022
2849050
ci: improve test skipping mechanism (#13987)
julienrbrt Nov 23, 2022
644f906
refactor: (secp256k1) cleaner way to check for lower S form signature…
facundomedica Nov 23, 2022
908fda1
feat: sender mempool impl (#13888)
JeancarloBarrios Nov 23, 2022
cfa224c
chore: add group and gov/v1 in swagger (#13984)
julienrbrt Nov 23, 2022
077abae
feat: value renderer for google.protobuf.Any (#13671)
JimLarson Nov 24, 2022
00ad3ec
perf: crypto/types: use native slice index producing for loop in (*Co…
odeke-em Nov 24, 2022
e260fc1
feat: Add tx encode and decode endpoints for amino txs (#13882)
likhita-809 Nov 24, 2022
a19eead
refactor: x/crisis audit changes (#13990)
likhita-809 Nov 24, 2022
560ba86
fix: fix broken OSS-Fuzz build (#13889)
AdamKorcz Nov 25, 2022
d1e5a44
build(deps): Bump github.com/cosmos/ledger-cosmos-go from 0.11.1 to 0…
dependabot[bot] Nov 25, 2022
16c772d
docs: (x/distribution) Fix docs for v0.47 (#14022)
facundomedica Nov 25, 2022
67b2b34
docs: appside mempool (#13875)
tac0turtle Nov 25, 2022
ffb0e29
fix: tools/cosmovisor: return on failing to remove existing symlink (…
odeke-em Nov 27, 2022
60fdbd0
ci: add workflow for reporting possible state-changing diffs (#13774)
elias-orijtech Nov 27, 2022
45cc1b0
fix: fix multi platform go build in docker push workflow (#13993)
rnbguy Nov 27, 2022
75a2f26
change image name (#14033)
tac0turtle Nov 27, 2022
6f329d7
docs: add docs about `x/auth/tx` (#14021)
julienrbrt Nov 27, 2022
e5038d8
chore: bumps math and api deps (#14035)
julienrbrt Nov 27, 2022
5567828
chore: update docs (#14038)
atheeshp Nov 28, 2022
68c1517
test: fix `TestSimAppExportAndBlockedAddrs` for simapp v1 (#14036)
julienrbrt Nov 28, 2022
41f0ab1
refactor: remove gogoproto stringer annotations and `MarshalYAML` fun…
julienrbrt Nov 28, 2022
5ea5d91
ci: allow to deploy docs manually (#14042)
julienrbrt Nov 28, 2022
2e63812
chore: remove replace tag on ics23 (#14043)
tac0turtle Nov 28, 2022
c6189bb
refactor: cleanup store/streaming/constructor.go #14044
alexanderbez Nov 28, 2022
4fe7403
feat: deterministic CBOR encoding of textual rendering (#13697)
JimLarson Nov 28, 2022
1ac7d32
fix(baseapp): fix snapshot interval bug (#14049)
JeancarloBarrios Nov 28, 2022
721b174
chore: fix link to "building modules" doc (#14058)
ccamel Nov 29, 2022
b25908b
refactor: use go context instead of sdk.Context (#14050)
tac0turtle Nov 29, 2022
8bb4521
docs: Rosetta openapi specification (#14061)
JulianToledano Nov 29, 2022
a1b09a0
refactor: remove gogoproto stringer annotations (#14046)
julienrbrt Nov 29, 2022
cfd79fc
feat: add Genesis JSON migration for group (#14024)
julienrbrt Nov 29, 2022
50b6f32
refactor: camelCase textual/cbor (#14068)
facundomedica Nov 29, 2022
a176eb2
chore: bump tendermint to 0.37.0-rc2 (#14067)
julienrbrt Nov 29, 2022
2cf92ca
Support for repeated (#13604)
joeabbey Nov 29, 2022
5a1fa2e
fix: store/rootmulti: correctly dispatch exporter closing while in a …
odeke-em Nov 29, 2022
fffc9d0
refactor!: Add context arg to sign mode handler `GetSignBytes` (#13701)
amaury1093 Nov 29, 2022
730d631
fix: remove unnecessary cms typecasting (#14054)
javiersuweijie Nov 29, 2022
04f9ad2
chore: mark WrapSdkContext as deprecated (#14072)
tac0turtle Nov 29, 2022
8c6181a
reuse helper fn and add comment (#14075)
kocubinski Nov 29, 2022
3e85182
perf: math: optimize and test FormatInt + simplify LegacyNewDecFromSt…
odeke-em Nov 29, 2022
2e3d38f
refactor: move snapshotstore under store (#14048)
tac0turtle Nov 29, 2022
6239cdf
chore: clean-up deprecated function usage (#14078)
julienrbrt Nov 30, 2022
ac6b19d
refactor: x/nft audit changes (#14055)
likhita-809 Nov 30, 2022
4a90621
chore: (x/feegrant) add missing test scenarios (#14018)
atheeshp Nov 30, 2022
e395e43
fix: fix issues found by sonarcloud (#14081)
julienrbrt Nov 30, 2022
4ebe3aa
fix(group)!: Don't re-tally proposals after VP end (#14071)
amaury1093 Nov 30, 2022
e087566
chore: (x/mint) improve code cov (#14066)
atheeshp Nov 30, 2022
f96072d
fix: do not shadow clientCtx in start.go (#14086)
julienrbrt Nov 30, 2022
6679ee0
fix: remove rosetta from server start (#14062)
JulianToledano Nov 30, 2022
679c5d6
chore: run markdownlint on the whole repository (#14106)
faddat Nov 30, 2022
65a9913
refactor: Add back removed empty checks in grpc from x/nft audit
likhita-809 Dec 1, 2022
b9e0a40
chore: correct language for fee granter error (#14111)
paul121 Dec 1, 2022
37a9bc3
refactor: x/evidence audit changes (#14092)
likhita-809 Dec 1, 2022
fb4d964
refactor: don't break `SignModeHandler` API (#14087)
amaury1093 Dec 1, 2022
4cfc79a
build(deps): Bump github.com/cosmos/cosmos-proto from 1.0.0-alpha8 to…
dependabot[bot] Dec 1, 2022
0c65734
fix: Remove `google.golang.org/protobuf` Any prefix (#14119)
amaury1093 Dec 1, 2022
9f46665
chore: Test for Server Config Read #14125
alexanderbez Dec 1, 2022
3aff993
fix: runtime: fix (*App).RegisterMoodules inconsistency in checking/m…
odeke-em Dec 1, 2022
754ca31
feat: add tx limit to mempool (#14014)
JeancarloBarrios Dec 2, 2022
bcfb7dc
build: Makefile: add Go vulnerability checker (#14028)
odeke-em Dec 2, 2022
9d12a5f
feat: implement parse method for Int,Dec,Coin (#13696)
atheeshp Dec 2, 2022
25cf0b3
chore: update stale PR (#14136)
tac0turtle Dec 2, 2022
1f91ee2
fix: state listener observe writes at wrong time (#13516)
yihuang Dec 2, 2022
ca0b1de
chore: bound mempool size by default (#14135)
tac0turtle Dec 2, 2022
25449b5
fix: remove duplicate ante events (#13983)
johnletey Dec 2, 2022
390262f
refactor: remove reliance on sdk/types/errors from store (#14090)
tac0turtle Dec 3, 2022
3dd1285
Merge branch 'main' of github.com:cosmos/cosmos-sdk into feature/depo…
icafa Dec 5, 2022
1e3c854
update %s to %w
icafa Dec 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 0 additions & 44 deletions .build.sh

This file was deleted.

59 changes: 0 additions & 59 deletions .codecov.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .deepsource.toml

This file was deleted.

11 changes: 9 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# CODEOWNERS: https://help.github.com/articles/about-codeowners/

# NOTE: Order is important; the last matching pattern takes the
# most precedence.
# NOTE: Order is important; the last matching pattern takes the most precedence

# Primary repo maintainers

* @cosmos/sdk-core-dev

# CODEOWNERS for docs configuration

/docs/docusaurus.config.js @julienrbrt @tac0turtle
/docs/sidebars.js @julienrbrt @tac0turtle
/docs/pre.sh @julienrbrt @tac0turtle
/docs/post.sh @julienrbrt @tac0turtle
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ I have...
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
Expand Down
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Closes: #XXXX
<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review. -->

<!-- Pull requests that sit inactive for longer than 30 days will be closed. -->
---

### Author Checklist
Expand Down
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,10 @@ updates:
labels:
- "A:automerge"
- dependencies
- package-ecosystem: gomod
directory: "/tools/rosetta"
schedule:
interval: weekly
labels:
- "A:automerge"
- dependencies
18 changes: 0 additions & 18 deletions .github/workflows/build-skip.yml

This file was deleted.

25 changes: 15 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ name: Build SimApp
# This workflow is run on pushes to main & every Pull Requests where a .go, .mod, .sum have been changed
on:
pull_request:
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
push:
branches:
- main
- release/**
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
permissions:
contents: read

Expand All @@ -31,11 +23,24 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.2
go-version: 1.19.3
- uses: technote-space/get-diff-action@v6.1.1
id: git_diff
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/go.mod
**/go.sum
**/Makefile
Makefile
- name: Build
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build
- name: Build Legacy
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false COSMOS_BUILD_OPTIONS=legacy make build

- name: Build Cosmovisor
if: env.GIT_DIFF
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make cosmovisor
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.2
go-version: 1.19.3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cosmovisor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 1.19.2
go-version: 1.19.3
# get 'v*.*.*' part from 'cosmovisor/v*.*.*' and save to $GITHUB_ENV
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/cosmovisor/}" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-update-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
token: ${{ secrets.PRBOT_PAT }}
- uses: actions/setup-go@v3
with:
go-version: 1.19.2
go-version: 1.19.3
- name: Extract updated dependency
id: deps
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/dependencies-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19.2
go-version: 1.19.3
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Dependency Review"
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@v3
- name: "Dependency audit"
run: ./scripts/dep-assert.sh
- name: "Go vulnerability check"
run: make vulncheck
1 change: 1 addition & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Deploy docs
# This job builds and deploys documenation to github pages.
# It runs on every push to main with a change in the docs folder.
on:
workflow_dispatch:
push:
branches:
- main
Expand Down
54 changes: 26 additions & 28 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ on:

permissions:
contents: read
packages: write

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: cosmos/simapp

jobs:
build:
Expand All @@ -23,43 +30,34 @@ jobs:
with:
fetch-depth: 0

- name: Prepare
id: prep
run: |
DOCKER_IMAGE=interchainio/simapp
VERSION=noop
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
elif [[ $GITHUB_REF == refs/heads/* ]]; then
VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
if [ "${{ github.event.repository.default_branch }}" = "$VERSION" ]; then
VERSION=latest
fi
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:${VERSION}"
fi
echo ::set-output name=version::${VERSION}
echo ::set-output name=tags::${TAGS}
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern=latest-{{major}}.{{minor}}
flavor: |
latest=false

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Login to DockerHub
- name: Log into registry ${{ env.REGISTRY }}
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to Docker Hub
- name: Publish to GitHub Packages
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-go@v3
with:
# ci is set to go1.19 to match developer setups
go-version: 1.19.2
go-version: 1.19.3
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Add pull request to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
- uses: actions/add-to-project@v0.4.0
with:
project-url: https://github.com/orgs/cosmos/projects/26
github-token: ${{ secrets.PERSONAL_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.2
go-version: 1.19.3
- name: Unshallow
run: git fetch --prune --unshallow
- name: Create release
Expand Down
Loading