Skip to content

Commit

Permalink
Changelog testing (#10)
Browse files Browse the repository at this point in the history
* Remove local Earthfile

* Add KonsorTech resources.md

* search filter as query param from home page

* search filter as query param from home page

* Small fixes to task readme

* Add vercel rewrite

* Added about modals

* Add AutoStake testnet service link

* Bump github.com/cosmos/cosmos-sdk from 0.47.2 to 0.47.3 in /chain

Bumps [github.com/cosmos/cosmos-sdk](https://github.com/cosmos/cosmos-sdk) from 0.47.2 to 0.47.3.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases)
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.3/CHANGELOG.md)
- [Commits](cosmos/cosmos-sdk@v0.47.2...v0.47.3)

---
updated-dependencies:
- dependency-name: github.com/cosmos/cosmos-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Init rollbar

* Cosmwasm messages support

* Full rollbar integration marketplace + poe

* Smol cleaning

* Prod build fix

* Update empowerjs

* Update rules.md

* Update full-node-setup.md

* Update cosmovisor-setup.md

* Update resources.md

* Update (AM Solutions) resources.md

* Update resources.md by 🔥STAVR🔥

* poe env hotfix (EmpowerPlastic#868)

* Update resources.md

* Added docs guidelines

* Added esbuild for linux

* Add [NODERS]TEAM service in resources.md

- Guide (Validator service)
- Endpoint

* nav bar position fix and wider screen UI fix

* Applicant ID added to wallet cache

* fix typo delegation-program.md

* Subquery hotfix for processing events multiple times

* Date of listing creation added

* Purchase dates added for buy order history

* Update resources.md

* Update resources.md

* search bar responsive fix

* multiselect UI changes

* nav bar position fix and wider screen UI fix

* search bar responsive fix

* multiselect UI changes

* Bump wasmd to 0.41.1

* revert ibc 7.1

* Fix height flag not working in queries

* Fix docgen go mod tidy

* Update Swagger docs

* undefined issue fix

* add Sr20de endpoints

* os build fix

* shebang fix

* Fix e2e tests after query fix

* Bump cometbft

* Static build for releases

* Add version to release builds

* Fix lint

* Disable local rollbar + reactive fixes

* Rename binary inside of zip files

* docgen go mod tidy

* Marketplace credits page graphql integration (EmpowerPlastic#891)

* certificate listing and transfer credit page

* retire credit implementation

* transfer credit implementation

* certificate listing implementation

* certficate listing developed

* rebased and resolved conflicts

* build issue fix

* Tx fixes and smol UI improvements

---------

Co-authored-by: Jakub Kobeldys <jakub@kobeldys.com>

* Typo fix in retire credits modal

Just typo, merging

* Added some more rewards

* Add Sr20de node resources

* certificate page created

* buy credits fix

* buy credits fix

* add Sr20de explorer

* cerficate page query

* certificate page created

* cerficate page query

* console cleared

* renamed wasm file to bypass adblocker

* renamed wasm file to bypass adblocker

* refresh auction balance and my credit balance

* clean up

* Disable volume filter + add margin on my certificates page

* buy credit validation,show error message and UI fixes (EmpowerPlastic#915)

* EmpowerJS IBC support (EmpowerPlastic#916)

* Update empowerjs (EmpowerPlastic#917)

Co-authored-by: ba1ciu <ba1ciu@users.noreply.github.com>

* Multiple wallet support + enabling ibc + various small improvements (EmpowerPlastic#918)

* select modal implementation

* wallet and adress stored to local storage

* select modal implementation

* wallet and adress stored to local storage

* disconnect button added

* commmon wallet handler implemented

* error console added

* validate wallet connected or not

* Added a get wallet util, needs some expansion

* rename util method

* get wallet created as common one

* rebased with main

* Enabled IBC, fixed wallet gas issues

* Bump EmpowerJS to 0.0.18

* IBC denom lookup

* why did I do it in the first place?

* ESLint complaining about my sloppy typing

* bump empowerjs

* cleaning

---------

Co-authored-by: Shan <shanpirana@gmail.com>
Co-authored-by: Gjermund Garaba <gjermund@garaba.net>

* copy wallet address and buy credits UI fix

* Sending errors to Rollbar

* Set log environment as env variable

* copy wallet address (EmpowerPlastic#924)

Co-authored-by: Gjermund Garaba <gjermund@empower.eco>

* add timestamps to marketplace listing related events (EmpowerPlastic#923)

* add timestamps to marketplace listing related events

* Proper merge

* Added stress test instructions

* eslint issue fixed and files formatted

* lint fixes

* eslint issue fixed and files formatted

* lint fixes

* Mainnet dir prep

* Change CI job to mainnet

* README update

* use base-genesis for gentx collection instead of genesis.json

* Empower validator gentx

* Create gentx-MZONDER.json

* add polkachu gentx

* Create gentx-bloclick.json

* Add files via upload

* RHINO empowerchain-1 gentx

* Create gentx-AVIAONE.json

* add gentx StakingCabin

* gentx by 🔥STAVR🔥

* Add files via upload

* Create gentx-stakrspace.json

* Create gentx-w3coins.json

* Create gentx-AM-Solutions.json

* Chill Validation Gentx

* Create gentx-ITRocket.json

* Add files via upload

* alphab gentx. empowerchain-1 mainnet

* add gentx-NODEJUMPER.json

* Add Crypto Chemistry gentx

* Add ZenChainLabs GenTX

* Add BlueStake gentx

* Add CryptoCrew gentx

* Add ECO Stake empowerchain-1 gentx

* Add WhisperNode gentx

* Create gentx NODERS]TEAM

* Create gentx-STAKEME.json

* Create gentx-KaliaNetwork.json

* Add Gentx

* Create gentx-Enigma.json

* add bro_n_bro gentx

* Fix Crypto Chemistry gentx

* Gentx Zenscape (EmpowerPlastic#971)

Co-authored-by: code2ssh <code2ssh@gmail.com>

* Mainnet genesis (EmpowerPlastic#974)

* Mainnet genesis

* Genesis download instructions and node setup

* Seed node behind url

* Mainnet genesis (EmpowerPlastic#975)

* Mainnet genesis

* Genesis download instructions and node setup

* Seed node behind url

* README update

* Binary build instructions fix (EmpowerPlastic#976)

* Mainnet genesis

* Genesis download instructions and node setup

* Seed node behind url

* README update

* Binary build instructions fix

* Add ccvalidators seed (EmpowerPlastic#977)

* Add CryptoCrew seednode

* format

* Add more tokenomics docs

* airdrop project initiation

* bg image position change

* airdrop project initiation

* bg image position change

* build issue fix

* Add clarification on vesting accounts

* Added some more brand assets

* home page implementation

* success modal

* Added queries

* success modal changes and styles

* home page implementation

* success modal

* Added queries

* success modal changes and styles

* wallet address autofill option

* account change handled

* rebased

* Small fixes in text etc

* Add airdrop checker fe build

* Build errors

* Fix airdrop balance for those who have staked

* Fix loading bug when wallet not found

* responsive changes

* responsive changes

* Post-launch docs update

* Swagger setup

* add resources page for mainnet (EmpowerPlastic#992)

* add resources page for mainnet

This is a mainnet resource page, just like the testnet https://docs.empowerchain.io/testnet/resources . All links changed to mainnet

* add Resources to .vitepress

* Don't save duplicate metadata uris

* 980 plastic credit offset certificate template implementation (EmpowerPlastic#995)

* certificate UI

* graphQL implementation for certificate

* PDF generator

* certificate UI

* graphQL implementation for certificate

* PDF generator

* Changelog generation

* Paths fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Gjermund Garaba <gjermund@empower.eco>
Co-authored-by: konsortech <112930581+konsortech@users.noreply.github.com>
Co-authored-by: Shan <shanpirana@gmail.com>
Co-authored-by: Gjermund Garaba <gjermund@garaba.net>
Co-authored-by: AutoStake <22457974+AutoStake-com@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gjermundgaraba <gjermundgaraba@users.noreply.github.com>
Co-authored-by: Indonode <34649601+elangrr@users.noreply.github.com>
Co-authored-by: Alexey <87909854+AlexToTheMoon@users.noreply.github.com>
Co-authored-by: STAVR <44331529+obajay@users.noreply.github.com>
Co-authored-by: [NODERS]TEAM <94483941+nodersteam@users.noreply.github.com>
Co-authored-by: Caner Yakupoğlu <caneryakupoglu@outlook.com>
Co-authored-by: Sergey Mazein <37579301+semalis@users.noreply.github.com>
Co-authored-by: Palamar <palamarsat@gmail.com>
Co-authored-by: Sr20de <106104431+Sr20dem@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ba1ciu <ba1ciu@users.noreply.github.com>
Co-authored-by: maxzonder <maxzonder@gmail.com>
Co-authored-by: Polkachu Intern <hello@polkachu.com>
Co-authored-by: ivandiazperez <42877828+ivandiazperez@users.noreply.github.com>
Co-authored-by: ardapda <arda.pda@gmail.com>
Co-authored-by: Eric Carlson <ecarls@gmail.com>
Co-authored-by: Aviaone <105792641+AviaOne@users.noreply.github.com>
Co-authored-by: vincent-stakingcabin <vincent@stakingcabin.com>
Co-authored-by: Moncho Santos <moncho.santosdios@gmail.com>
Co-authored-by: stakr.space <65043457+papanomad535@users.noreply.github.com>
Co-authored-by: w3coins <128411453+w3coins-io@users.noreply.github.com>
Co-authored-by: Chill Validation <92176880+chillyvee@users.noreply.github.com>
Co-authored-by: Marutyan Samvel <48280694+itrocket-team@users.noreply.github.com>
Co-authored-by: Dimokus <Dimokus@mail.ru>
Co-authored-by: Northa <ypp1le@gmail.com>
Co-authored-by: Valentin Bloher <vbloher7@gmail.com>
Co-authored-by: Relyte <96859270+Relyte@users.noreply.github.com>
Co-authored-by: ZenChainLabs <94157862+zenchainlabs@users.noreply.github.com>
Co-authored-by: stan-bl <72133698+stan-bl@users.noreply.github.com>
Co-authored-by: clemensgg <csc@soundportal.at>
Co-authored-by: Tom Beynon <tom@tombeynon.co.uk>
Co-authored-by: Brendan | WhisperNode <130489602+Brendan-Whispernode@users.noreply.github.com>
Co-authored-by: WhisperNode <brendan@whispernode.com>
Co-authored-by: STAKEME <79249177+stakemepro@users.noreply.github.com>
Co-authored-by: Kalia Network <98432073+KaliaNetwork@users.noreply.github.com>
Co-authored-by: Validatrium <validatrium@gmail.com>
Co-authored-by: Enigma-Validator <91531677+Enigma-Validator@users.noreply.github.com>
Co-authored-by: altbro <mikevazovski1845@gmail.com>
Co-authored-by: Surendra Patil <Surendra-Patil@users.noreply.github.com>
Co-authored-by: code2ssh <code2ssh@gmail.com>
Co-authored-by: CryptoCrew Validators <79083520+clemensgg@users.noreply.github.com>
Co-authored-by: Mahesh K <72862615+maheshKRex@users.noreply.github.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 1,841 changed files with 299,964 additions and 121,755 deletions.
11 changes: 2 additions & 9 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
FROM mcr.microsoft.com/devcontainers/base:jammy

ENV GOLANG_VERSION=1.19.3 \
GOLANG_PROTOBUF_VERSION=1.28.0 \
GOGO_PROTOBUF_VERSION=1.3.2 \
GRPC_GATEWAY_VERSION=1.16.0
ENV GOLANG_VERSION=1.20.3

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends build-essential software-properties-common gnupg2 rng-tools vim iputils-ping

RUN wget https://go.dev/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz && tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz

RUN curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.9.0/buf-$(uname -s)-$(uname -m)" --create-dirs -o "/home/vscode/.custom-single-path-executables/buf" && chmod +x "/home/vscode/.custom-single-path-executables/buf"
RUN su vscode -c "/usr/local/go/bin/go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest"
RUN su vscode -c "/usr/local/go/bin/go install google.golang.org/protobuf/cmd/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION}"
RUN su vscode -c "/usr/local/go/bin/go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION} \
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v${GRPC_GATEWAY_VERSION}"

RUN su -c 'wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly && /usr/local/bin/earthly bootstrap --with-autocomplete'

ENV PATH="/usr/local/go/bin:/home/vscode/go/bin:/home/vscode/.custom-single-path-executables:${PATH}"
10 changes: 8 additions & 2 deletions .earthlyignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
.github
.devcontainer
.idea
*.pdf
**/*.pdf
**/coverage.out
**/.idea/
**/artifacts/
**/.vscode/
**/target/
**/build/
**/node_modules/
**/node_modules/
**/Earthfile
**/*.iml
4 changes: 2 additions & 2 deletions .github/workflows/chain_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:

- uses: earthly/actions-setup@v1
with:
version: v0.6.30
version: 0.6.30

- run: earthly --ci --output +build
- run: earthly --ci --output +build-local
working-directory: ./chain

- uses: actions/upload-artifact@v3
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/chain_changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Write EmpowerChain changelog

on:
workflow_dispatch:
inputs:
old_version:
description: "Specify the old version (tag)"
new_version:
description: "Specify the new version (tag)"

jobs:
release:
name: Release
runs-on: ubuntu-22.04
steps:

- name: Get versions
run: |
old_version=${{ github.event.inputs.old_version }}
new_version=${{ github.event.inputs.new_version }}
branch_name=actions/changelog-version-${new_major_version}
echo "OLD_VERSION=$old_version" >> $GITHUB_ENV
echo "NEW_VERSION=$new_version" >> $GITHUB_ENV
echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV
- uses: actions/checkout@v3

- name: Update changelogs
run: ./chain/scripts/changelog.sh

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "Update changelog for ${{ env.NEW_VERSION }}"
title: "Update changelog for ${{ env.NEW_VERSION }}"
branch: "${{ env.BRANCH_NAME }}"
30 changes: 30 additions & 0 deletions .github/workflows/chain_docs-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Update Swagger docs"

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'chain/proto/**' # On updating proto

jobs:
build:
name: Update Swagger docs
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: earthly/actions/setup-earthly@v1
with:
version: v0.6.22

- run: earthly --ci --output +swagger-docs
working-directory: .chain/

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update chain Swagger docs
title: Update chain Swagger docs
branch: update-swagger-docs

46 changes: 46 additions & 0 deletions .github/workflows/chain_empowerjs-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "EmpowerJS update and publish"

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'chain/proto/**' # On updating proto
- 'frontend/empowerjs/src/**' # On updating empowerjs source files

jobs:
build:
name: Update and publish empowerjs
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: earthly/actions/setup-earthly@v1
with:
version: v0.6.22

- run: earthly --ci --output +generate-schema
working-directory: ./cosmwasm

- run: earthly --ci --output +codegen-all
working-directory: ./frontend/empowerjs

- name: Check if there are any changes
id: verify_diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
- name: Publish empowerjs on npm
if: steps.verify_diff.outputs.changed != 'true' # Only publish if there are no more changes, first we make a pr for those, then another run will be triggered and publish
run: earthly --ci --output +publish --NPM_TOKEN="$NPM_TOKEN"
working-directory: ./frontend/empowerjs
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update empowerjs
title: Update empowerjs
branch: update-empowerjs

2 changes: 1 addition & 1 deletion .github/workflows/chain_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: earthly/actions-setup@v1
with:
version: v0.6.30
version: 0.6.30

- run: earthly --ci +lint
working-directory: ./chain
34 changes: 34 additions & 0 deletions .github/workflows/chain_pre_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create EmpowerChain pre-release

on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- 'chain/**'

jobs:
release:
name: Release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- uses: earthly/actions-setup@v1
with:
version: 0.6.30

- run: earthly --ci --output +build-static --VERSION=${{ github.ref_name }}
working-directory: ./chain

- run: |
mv empowerd-${{ github.ref_name }}-linux-amd64 empowerd && zip -q empowerd-${{ github.ref_name }}-linux-amd64.zip empowerd && rm empowerd
working-directory: ./chain/build
- uses: "ncipollo/release-action@v1"
with:
tag: "latest"
name: "Development Build"
prerelease: true
artifacts: ./chain/build/*
20 changes: 6 additions & 14 deletions .github/workflows/chain_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,16 @@ jobs:

- uses: earthly/actions-setup@v1
with:
version: v0.6.30
version: 0.6.30

- run: earthly --ci --output +build-all --VERSION=${{ github.ref_name }}
- run: earthly --ci --output +build-static --VERSION=${{ github.ref_name }}
working-directory: ./chain

- run: |
zip -q empowerd-${{ github.ref_name }}-linux-amd64.zip empowerd-${{ github.ref_name }}-linux-amd64 && rm empowerd-${{ github.ref_name }}-linux-amd64 && \
zip -q empowerd-${{ github.ref_name }}-linux-arm64.zip empowerd-${{ github.ref_name }}-linux-arm64 && rm empowerd-${{ github.ref_name }}-linux-arm64 && \
zip -q empowerd-${{ github.ref_name }}-darwin-amd64.zip empowerd-${{ github.ref_name }}-darwin-amd64 && rm empowerd-${{ github.ref_name }}-darwin-amd64 && \
zip -q empowerd-${{ github.ref_name }}-darwin-arm64.zip empowerd-${{ github.ref_name }}-darwin-arm64 && rm empowerd-${{ github.ref_name }}-darwin-arm64 && \
zip -q empowerd-${{ github.ref_name }}-windows-amd64.zip empowerd-${{ github.ref_name }}.exe && rm empowerd-${{ github.ref_name }}.exe
mv empowerd-${{ github.ref_name }}-linux-amd64 empowerd && zip -q empowerd-${{ github.ref_name }}-linux-amd64.zip empowerd && rm empowerd
working-directory: ./chain/build
# TODO: 1. Generate release notes
# TODO: 2. Build darwin + darwin arm version (maybe windows too)
- uses: "marvinpinto/action-automatic-releases@latest"
- uses: "ncipollo/release-action@v1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: ./chain/build/*
artifacts: ./chain/build/*
bodyFile: "./chain/app/upgrades/$GITHUB_REF_NAME/RELEASE_NOTES.md"
7 changes: 5 additions & 2 deletions .github/workflows/chain_simulation_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ name: "Simulation tests on EmpowerChain"

on:
workflow_dispatch:
schedule:
- cron: "0 */5 * * *"

jobs:
sim-tests:
name: Run EmpowerChain simulation tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
test:
[
Expand All @@ -22,7 +25,7 @@ jobs:

- uses: earthly/actions-setup@v1
with:
version: v0.6.30
version: 0.6.30

- run: earthly --ci +${{ matrix.test }}
- run: earthly --ci -P +${{ matrix.test }}
working-directory: ./chain
42 changes: 39 additions & 3 deletions .github/workflows/chain_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:

- uses: earthly/actions-setup@v1
with:
version: v0.6.30
version: 0.6.30

- run: earthly --ci --output +test-with-coverage
- run: earthly --ci --output -P +test-with-coverage
working-directory: ./chain

- uses: codecov/codecov-action@v3
Expand All @@ -31,5 +31,41 @@ jobs:
flags: chain
fail_ci_if_error: true

- run: earthly --ci +smoketest
smoke-test:
name: Smoke tests EmpowerChain
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- uses: earthly/actions-setup@v1
with:
version: 0.6.30

- run: earthly --ci -P +smoketest
working-directory: ./chain

non-determinism-test:
name: Simulation non-determinism tests EmpowerChain
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- uses: earthly/actions-setup@v1
with:
version: 0.6.30

- run: earthly --ci -P +test-sim-nondeterminism
working-directory: ./chain

ibc-conformance-test:
name: Run interchaintest IBC conformace test suite
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- uses: earthly/actions-setup@v1
with:
version: 0.6.30

- run: earthly --ci --output -P +ibc-conformance-test
working-directory: ./chain
2 changes: 1 addition & 1 deletion .github/workflows/cosmwasm_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: earthly/actions-setup@v1
with:
version: v0.6.30
version: 0.6.30

- run: earthly --ci --output +test-with-coverage
working-directory: ./cosmwasm
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/devnet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,14 @@ jobs:
name: Deploy Devnet
runs-on: ubuntu-22.04
steps:
- name: multiple command
uses: appleboy/ssh-action@v0.1.7
- name: Deploy Devnet
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.DEVNET_HOST }}
username: ${{ secrets.DEVNET_USER }}
password: ${{ secrets.DEVNET_PASSWORD }}
port: ${{ secrets.DEVNET_PORT }}
script: |
cd ./empowerchain && \
git pull && \
cd chain && \
make install && \
sudo systemctl stop empowerd && \
empowerd tendermint unsafe-reset-all && \
sudo systemctl start empowerd && \
sleep 5 && \
empowerd status
# load shell env manually as it's not getting loaded by the job
source .zshrc
./deploy.sh
33 changes: 33 additions & 0 deletions .github/workflows/devnet_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Build and push devnet to ghcr.io"

on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'chain/**'

env:
IMAGE_NAME: empowerchain-devnet

jobs:
build:
name: Build and push devnet to ghcr.io
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- uses: earthly/actions-setup@v1
with:
version: 0.6.30

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: build image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
earthly --ci --push +devnet --IMAGE_NAME=$IMAGE_ID
working-directory: ./chain
Loading

0 comments on commit da1bf4d

Please sign in to comment.