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

build: Add semantic automated release to mainnet branch [DEV-1718] #27

Merged
merged 70 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
2fb8191
Create .dockerignore
ankurdotb Aug 18, 2022
9fd085f
Update Dockerfile
ankurdotb Aug 18, 2022
50c2e95
Create env-vars.sh
ankurdotb Aug 18, 2022
4fbe50d
Update config.yaml
ankurdotb Aug 18, 2022
615a4c3
Update Dockerfile
ankurdotb Aug 18, 2022
4fa8541
Update Dockerfile
ankurdotb Aug 18, 2022
e7afe45
Fix dispatch
ankurdotb Aug 18, 2022
1be9037
Update .dockerignore
ankurdotb Aug 18, 2022
cbb58ca
Update .dockerignore
ankurdotb Aug 18, 2022
94f1418
Update config.yaml
ankurdotb Aug 18, 2022
7f79dc9
Update env-vars.sh
ankurdotb Aug 18, 2022
12dd6a2
Update .dockerignore
ankurdotb Aug 18, 2022
184c76c
Fix file permissions
ankurdotb Aug 18, 2022
ebea3fb
Update .dockerignore
ankurdotb Aug 18, 2022
a733609
Delete ensure_set_euox_pipefail.sh
ankurdotb Aug 18, 2022
90ee301
Update lint.yml
ankurdotb Aug 18, 2022
5717817
Activate golang cache
ankurdotb Aug 18, 2022
92816c8
Update build to include Docker
ankurdotb Aug 18, 2022
2cb1066
Fix incorrect chmod statement
ankurdotb Aug 18, 2022
851ddd7
Revert "Delete ensure_set_euox_pipefail.sh"
ankurdotb Aug 18, 2022
33a1ad6
Revert "Update lint.yml"
ankurdotb Aug 18, 2022
a54640a
Add bash to BDJuno image
ankurdotb Aug 18, 2022
5b5ed8f
Update env-vars.sh
ankurdotb Aug 18, 2022
414716b
Remove ACTIONS_BASE_URL from BDJuno
ankurdotb Aug 18, 2022
d01bbd7
build(docker): Fix BDJuno Dockerfile and environment variable setting
ankurdotb Aug 18, 2022
927e888
Update env-vars.sh
ankurdotb Aug 18, 2022
2b13599
Squashed commit of the following:
ankurdotb Aug 18, 2022
deb45c7
Update Hasura config variables
ankurdotb Aug 18, 2022
c70d5a7
Update env-vars.sh
ankurdotb Aug 18, 2022
c79e88b
Squashed commit of the following:
ankurdotb Aug 18, 2022
bee9d91
Update Dockerfile.hasura
ankurdotb Aug 18, 2022
d1cf11b
Update env-vars.sh
ankurdotb Aug 18, 2022
20fc4a2
build(docker): Hasura CLI Dockerfile and environment variable fixes (…
ankurdotb Aug 18, 2022
9155186
fix: New BDJuno path in env-vars
ankurdotb Aug 18, 2022
8229246
ci: Remove binary build
ankurdotb Aug 18, 2022
4669cdc
fix: Variable path
ankurdotb Aug 18, 2022
1dbf8c9
fix: Update internal port
ankurdotb Aug 19, 2022
3cf36c0
ci: Added Hasura CLI build to workflow
ankurdotb Aug 19, 2022
c4bf936
fix: Explicitly set variable namespace
ankurdotb Aug 19, 2022
756872d
ci: Disable SC2154
ankurdotb Aug 19, 2022
2bfd529
fix: Vars again
ankurdotb Aug 19, 2022
d77c1a1
refactor: Set some variables directly
ankurdotb Aug 19, 2022
fd6b2dd
Update env-vars.sh
ankurdotb Aug 19, 2022
0ef3a6b
Update env-vars.sh
ankurdotb Aug 19, 2022
76c6226
Create entrypoint file
ankurdotb Aug 19, 2022
a29f6cc
Update entrypoint.sh
ankurdotb Aug 19, 2022
50b3222
Entrypoint
ankurdotb Aug 19, 2022
ea43e51
Update Dockerfile
ankurdotb Aug 19, 2022
4b6fea1
Update entrypoint.sh
ankurdotb Aug 19, 2022
eedd69a
All entrypoint values fixed
ankurdotb Aug 19, 2022
007e035
Remove RPC connections
ankurdotb Aug 19, 2022
2b6d33b
Set database port to integer value
ankurdotb Aug 19, 2022
114a0ce
Update entrypoint.sh
ankurdotb Aug 19, 2022
3f265db
fix: Add CA Certs package
ankurdotb Aug 19, 2022
456c2f7
Remove history from BDJuno
ankurdotb Aug 19, 2022
d0525b2
Set variables in Hasura CLI image
ankurdotb Aug 23, 2022
9b4fbf5
Update entrypoint.sh
ankurdotb Aug 23, 2022
673a091
chore(dev-deps): Bump semantic-release from 19.0.3 to 19.0.5 (#18)
dependabot[bot] Aug 23, 2022
e780f43
chore(deps): Bump github.com/go-co-op/gocron from 1.16.1 to 1.16.3 (#19)
dependabot[bot] Aug 24, 2022
9e5a2c5
chore(deps): Bump github.com/cosmos/gaia/v7 from 7.0.2 to 7.0.3 (#13)
dependabot[bot] Aug 24, 2022
091c6d6
chore(deps): Bump github.com/prometheus/client_golang from 1.12.2 to …
dependabot[bot] Aug 24, 2022
3af4dd8
chore(deps): Bump github.com/forbole/juno/v3 from 3.3.0 to 3.4.0 (#22)
dependabot[bot] Sep 8, 2022
0edeb5e
chore(deps): Bump github.com/go-co-op/gocron from 1.16.3 to 1.17.0 (#21)
dependabot[bot] Sep 8, 2022
8e7c529
chore(deps): Bump github.com/rs/zerolog from 1.27.0 to 1.28.0 (#20)
dependabot[bot] Sep 8, 2022
3e3782a
fix: Redeploy bdjuno on DO Apps (#24)
filipdjokic Sep 8, 2022
6f9e39b
feat: Sync upstream changes on BDJuno v0.3.4 [DEV-1715] (#25)
ankurdotb Sep 8, 2022
79bf82f
build: Automated semantic release with Goreleaser [DEV-1718] (#26)
ankurdotb Sep 8, 2022
6f7f897
Squashed commit of the following:
ankurdotb Sep 8, 2022
3733110
Squashed commit of the following:
ankurdotb Sep 9, 2022
066976a
Merge branch 'chains/cheqd/mainnet' into mainnet-workflow
ankurdotb Sep 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ jobs:
images: registry.digitalocean.com/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true
tags: |
${{ steps.set-network.outputs.NETWORK_NAME }}-latest
type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }}
labels: |
org.opencontainers.image.title="BDJuno for cheqd network"
Expand All @@ -129,16 +129,12 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Push BDJuno image
run: |
docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ steps.set-network.outputs.NETWORK_NAME }}-latest
docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ needs.release-binary.outputs.VERSION }}
run: docker image push --all-tags registry.digitalocean.com/${{ env.IMAGE_NAME }}

release-hasuracli:
name: "Hasura CLI Docker Image"
runs-on: ubuntu-latest
env:
IMAGE_NAME: ${{ github.repository }}
COMMIT_SHA: ${{ github.sha }}
needs: release-binary

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -171,9 +167,15 @@ jobs:
uses: docker/metadata-action@v4
with:
images: registry.digitalocean.com/cheqd/hasuracli
flavor: |
latest=auto
prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true
tags: |
${{ steps.set-network.outputs.NETWORK_NAME }}-latest
type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }}
labels: |
org.opencontainers.image.title="Hasura CLI for BDJuno"
org.opencontainers.image.description="Standalone Hasura CLI for cheqd network BDJuno configuration"
org.opencontainers.image.source="https://github.com/cheqd/bdjuno"
org.opencontainers.image.vendor="Cheqd Foundation Limited"
org.opencontainers.image.created={{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}
org.opencontainers.image.documentation="https://docs.cheqd.io/node"
Expand All @@ -189,5 +191,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Push Hasura CLI image
run: |
docker push registry.digitalocean.com/cheqd/hasuracli:${{ steps.set-network.outputs.NETWORK_NAME }}-latest
run: docker image push --all-tags registry.digitalocean.com/cheqd/hasuracli
11 changes: 6 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project_name: bdjuno

project_name: cheqd-bdjuno

env:
- GO111MODULE=on
Expand All @@ -20,9 +21,9 @@ builds:
flags:
- -mod=readonly
- -trimpath
ldflags:
- -X github.com/forbole/juno/v3/cmd.Version={{ .Version }}
- -X github.com/forbole/juno/v3/cmd.Commit={{ .Commit }}
# ldflags:
# - -X github.com/forbole/juno/v3/cmd.Version={{ .Version }}
# - -X github.com/forbole/juno/v3/cmd.Commit={{ .Commit }}

archives:
- id: release-archives
Expand Down Expand Up @@ -68,7 +69,7 @@ release:
name: bdjuno

draft: false
prerelease: true
prerelease: auto
mode: append
header: |
# Release Notes for {{.ProjectName}} v{{.Version}}
10 changes: 6 additions & 4 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"branches": [
"chains/cheqd/mainnet",
{
"name": "chains/cheqd/mainnet",
"channel": "mainnet"
},
{
"name": "chains/cheqd/testnet",
"channel": "beta",
"prerelease": true
"channel": "testnet"
}
],
"tagFormat": "${version}",
"tagFormat": "v${version}",
"ci": true,
"preset": "conventionalcommits",
"plugins": [
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# BDJuno
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/forbole/bdjuno/Tests)](https://github.com/forbole/bdjuno/actions?query=workflow%3ATests)
[![Go Report Card](https://goreportcard.com/badge/github.com/forbole/bdjuno)](https://goreportcard.com/report/github.com/forbole/bdjuno)
![Codecov branch](https://img.shields.io/codecov/c/github/forbole/bdjuno/cosmos/v0.40.x)

BDJuno (shorthand for BigDipper Juno) is the [Juno](https://github.com/forbole/juno) implementation
for [BigDipper](https://github.com/forbole/big-dipper).
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/go-co-op/gocron v1.17.0
github.com/gogo/protobuf v1.3.3
github.com/jmoiron/sqlx v1.3.5
github.com/lib/pq v1.10.6
github.com/lib/pq v1.10.7
github.com/pelletier/go-toml v1.9.5
github.com/prometheus/client_golang v1.13.0
github.com/proullon/ramsql v0.0.0-20181213202341-817cee58a244
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs=
github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw=
github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/libp2p/go-buffer-pool v0.0.2 h1:QNK2iAFa8gjAe1SPz6mHSMuCcjs+X1wlHzeOSqcmlfs=
github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM=
github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM=
Expand Down
Loading