Skip to content

Commit

Permalink
ci: heighliner docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeet97 committed Mar 28, 2024
1 parent 0a51fc1 commit da70c01
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 78 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Setup Go with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: 1.20.0
go-version: 1.21.0
id: go

- name: Checkout repository
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Setup Go with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: 1.20.0
go-version: 1.21.0
id: go

- name: Checkout repository
Expand Down
74 changes: 0 additions & 74 deletions .github/workflows/e2e-upgrade.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,35 @@ jobs:
files: release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

- name: Build and push Docker image
uses: strangelove-ventures/[email protected]
with:
platform: linux/arm64,linux/amd64
git-ref: ${{ steps.branch-name.outputs.current_branch }}
registry: docker.io/persistenceone
tag: ${{ github.ref_name }}
chain: persistencecore
dockerfile: cosmos
build-target: make install
binaries: |
- /go/bin/persistenceCore
build-env: |
- LEDGER_ENABLED=false
- BUILD_TAGS=muslc
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ release-git:

get-heighliner:
git clone https://github.com/strangelove-ventures/heighliner.git
cd heighliner && go install
cd heighliner && git checkout v1.5.4 && go install

local-image:
ifeq (,$(shell which heighliner))
echo 'heighliner' binary not found. Consider running `make get-heighliner`
else
heighliner build -c persistence --local -f ./chains.yaml
heighliner build -c persistence --go-version 1.21 --local -f ./chains.yaml
endif

.PHONY: get-heighliner local-image
Expand Down

0 comments on commit da70c01

Please sign in to comment.