Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-Rogerson committed Mar 15, 2024
1 parent a89d6cb commit 9a03d9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/build-push-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
heroku_app_name:
description: "Heroku app name"
required: true
heroku_app_type:
description: "Heroku app type"
required: true

runs:
using: "composite"
Expand All @@ -21,13 +24,15 @@ runs:
- name: Build Docker Image for Server
shell: bash
run: |
docker build --build-arg APP_PATH=./cmd/order-book -t registry.heroku.com/$HEROKU_APP_NAME/web -f cmd/order-book.Dockerfile .
docker build --build-arg APP_PATH=./cmd/order-book -t registry.heroku.com/$HEROKU_APP_NAME/$HEROKU_APP_TYPE -f cmd/order-book.Dockerfile .
env:
HEROKU_APP_NAME: ${{ inputs.heroku_app_name }}
HEROKU_APP_TYPE: ${{ inputs.heroku_app_type }}

- name: Push Docker Image for Server to Registry
shell: bash
run: docker push registry.heroku.com/$HEROKU_APP_NAME/web
run: docker push registry.heroku.com/$HEROKU_APP_NAME/$HEROKU_APP_TYPE
env:
HEROKU_API_KEY: ${{ inputs.heroku_api_key }}
HEROKU_APP_NAME: ${{ inputs.heroku_app_name }}
HEROKU_APP_TYPE: ${{ inputs.heroku_app_type }}
2 changes: 2 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "ob-server-development"
hero_app_type: "web"

build-swaps-tracker:
runs-on: ubuntu-latest
Expand All @@ -34,6 +35,7 @@ jobs:
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "ob-swaps-tracker-development"
hero_app_type: "worker"

build-maker-mock:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9a03d9e

Please sign in to comment.