Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Jun 6, 2024
1 parent 6855b0b commit 67ce833
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-and-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,27 @@ jobs:
- name: Install
run: make install

push-gaiad-demo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Calculate commit hash for PR commit
run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV

- name: Calculate commit hash for merge commit
run: echo "COMMIT_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV

- name: Login to dockerhub
run: docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} docker.io

- name: Build and Push
run: |
git clone https://github.com/cosmos/gaia
cd gaia
docker build -t komodoofficial/gaiad:latest -f ./Dockerfile .
docker push komodoofficial/gaiad:latest
container-build-and-push:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 67ce833

Please sign in to comment.