Skip to content

Commit

Permalink
Merge pull request #113 from hummingbot/docker-build
Browse files Browse the repository at this point in the history
update gateway workflow
  • Loading branch information
cardosofede authored May 25, 2023
2 parents d50a286 + 8b1d13a commit 2d6e3c7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,30 @@ jobs:
./node_modules/.bin/jest --listTests --findRelatedTests ${DIFF_FILES//$'\n'/ }
NODE_OPTIONS=--max-old-space-size=10240 node ./node_modules/.bin/jest --runInBand --coverage --findRelatedTests ${DIFF_FILES//$'\n'/ }
# git diff origin/$GITHUB_BASE_REF | yarn diff-test-coverage -c ./coverage/lcov.info -t lcov -b 50 -l 60

docker_build_and_push:
runs-on: ubuntu-latest
needs: [build_gateway]
if: github.event_name == 'pull_request' && github.event.pull_request.merged == true
steps:
- name: Checkout
uses: actions/checkout@v2

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

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: hummingbot/gateway:latest
platforms: linux/amd64,linux/arm64


0 comments on commit 2d6e3c7

Please sign in to comment.